📜  laravel 更新如果存在或创建 - TypeScript 代码示例
📅  最后修改于: 2022-03-11 14:48:27.046000             🧑  作者: Mango
代码示例1
$flight = App\Flight::updateOrCreate(
['departure' => 'Oakland', 'destination' => 'San Diego'],
['price' => 99]
);