📜  更新或创建 laravel - PHP 代码示例

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

代码示例6
$flight = App\Models\Flight::find(1);

$flight->name = 'New Flight Name';

$flight->save();