📜  在 laravel 中更新或插入 - PHP 代码示例

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

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