📜  where () laravel Eloquent - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:36.595000             🧑  作者: Mango

代码示例3
return Destination::orderByDesc(
    Flight::select('arrived_at')
        ->whereColumn('destination_id', 'destinations.id')
        ->orderBy('arrived_at', 'desc')
        ->limit(1)
)->get();