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:
@@ -62,7 +62,7 @@ class SimBriefController
|
||||
$aircraft_id = $request->input('aircraft_id');
|
||||
|
||||
/** @var Flight $flight */
|
||||
$flight = $this->flightRepo->with(['airline', 'arr_airport', 'dpt_airport', 'fares.fare', 'subfleets'])->find($flight_id);
|
||||
$flight = $this->flightRepo->with(['airline', 'arr_airport', 'dpt_airport', 'fares', 'subfleets'])->find($flight_id);
|
||||
|
||||
if (!$flight) {
|
||||
flash()->error('Unknown flight');
|
||||
|
||||
Reference in New Issue
Block a user