Convert flight transformer to the native Laravel resource object
This commit is contained in:
@@ -39,6 +39,10 @@ class FlightRepository extends BaseRepository implements CacheableInterface
|
||||
'active' => $only_active,
|
||||
];
|
||||
|
||||
if ($request->filled('flight_id')) {
|
||||
$where['id'] = $request->flight_id;
|
||||
}
|
||||
|
||||
if ($request->filled('airline_id')) {
|
||||
$where['airline_id'] = $request->airline_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user