Answers for "how to fetch data using limit"

0

how to fetch data using limit

use AppDestination;
use AppFlight;

return Destination::addSelect(['last_flight' => Flight::select('name')
    ->whereColumn('destination_id', 'destinations.id')
    ->orderBy('arrived_at', 'desc')
    ->limit(1)
])->get();
Posted by: Guest on January-17-2022

Code answers related to "how to fetch data using limit"

Browse Popular Code Answers by Language