Alternates
This commit is contained in:
@@ -38,4 +38,13 @@ class Airport extends Model
|
||||
'based' => ['GermanAirlinesVa\Fleet\Models\Aircraft', 'key' => 'home_airport_id'],
|
||||
'occupying' => ['GermanAirlinesVa\Fleet\Models\Aircraft', 'key' => 'airport_id'],
|
||||
];
|
||||
|
||||
public $belongsToMany = [
|
||||
'alternates' => [
|
||||
'GermanAirlinesVa\Routes\Models\Airport',
|
||||
'table' => 'alternates',
|
||||
'key' => 'airport_id',
|
||||
'otherKey' => 'alternate_id',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user