📜  laravel 模型保护 - PHP 代码示例

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

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

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

$flight->save();