#32 assign aircraft to subfleets, and aircraft to subfleets

This commit is contained in:
Nabeel Shahzad
2017-06-23 17:33:18 -05:00
parent b9d49a4af9
commit c3e417429a
27 changed files with 113 additions and 158 deletions

View File

@@ -81,8 +81,8 @@ class Flight extends Model
return $this->belongsTo('App\Models\Airport', 'alt_airport_id');
}
public function aircraft()
public function subfleets()
{
return $this->belongsToMany('App\Models\Aircraft', 'flight_aircraft');
return $this->belongsToMany('App\Models\Subfleet', 'subfleet_flight');
}
}