Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel find query

return Destination::orderByDesc(
    Flight::select('arrived_at')
        ->whereColumn('destination_id', 'destinations.id')
        ->orderBy('arrived_at', 'desc')
        ->limit(1)
)->get();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #find #query
ADD COMMENT
Topic
Name
6+8 =