📅  最后修改于: 2022-03-11 14:53:52.644000             🧑  作者: Mango
$type = Type::find(1);
$vehicle = App\Models\Vehicle::find(1);
$type->vehicles()->create([
// Your vehicle attributes
]);