Fix SimBrief Controller | flight relationships (#1350)
* Update SimBriefController.php Fix the fares relationship which was causing trouble when a flight had assigned fares * Fix model name used in relationship `Simbrief` should be `SimBrief`
This commit is contained in:
@@ -134,7 +134,7 @@ class Aircraft extends Model
|
||||
|
||||
public function simbriefs()
|
||||
{
|
||||
return $this->hasMany(Simbrief::class, 'aircraft_id');
|
||||
return $this->hasMany(SimBrief::class, 'aircraft_id');
|
||||
}
|
||||
|
||||
public function subfleet()
|
||||
|
||||
Reference in New Issue
Block a user