#32 assign aircraft to subfleets, and aircraft to subfleets
This commit is contained in:
@@ -50,6 +50,11 @@ class Subfleet extends Model
|
||||
return $this->belongsTo('App\Models\Airline', 'airline_id');
|
||||
}
|
||||
|
||||
public function flights()
|
||||
{
|
||||
return $this->belongsToMany('App\Models\Flight', 'subfleet_flight');
|
||||
}
|
||||
|
||||
public function ranks()
|
||||
{
|
||||
return $this->belongsToMany(
|
||||
|
||||
Reference in New Issue
Block a user