Convert flight transformer to the native Laravel resource object

This commit is contained in:
Nabeel Shahzad
2017-12-12 07:25:11 -06:00
parent 2e1c0a75d4
commit 373f45c86c
9 changed files with 76 additions and 87 deletions

View File

@@ -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;
}