📜  laravel 模型插入 - PHP 代码示例

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

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

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

$flight->save();