1
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user