Laravel Collection Public API: flip
flip The flip method will return a new Collection instance where are the all the collection item's keys have been exchanged with their corresponding values. The following code example demonstrates the effects of the flip method: 1 <?php 2 3 use...