This commit is contained in:
2025-06-09 11:37:32 +08:00
parent 0eec194a96
commit e5ae751512
8 changed files with 479 additions and 16 deletions
+6
View File
@@ -46,4 +46,10 @@ class Vehicle extends Model
{
return $this->belongsTo(Location::class, 'final_locations_id', 'id');
}
public function ship()
{
return $this->hasOne(Vehicle::class, 'ship_id', 'id');
}
}