Optional $callback Parameter | Laravel 5: Finding the Last Occurrence of an Element Matching a Condition With last
The $callback function is an optional parameter, and can be omitted. When the $callback parameter is omitted, the last method will return the last item in the array: 1 <?php 2 3 use Illuminate \ Support \ Arr ; 4 5 // 'something else' 6 $...