API: Only show active airlines
This commit is contained in:
parent
ee71f4a1c8
commit
2678514077
@ -21,7 +21,7 @@ class AirlineController extends RestController
|
||||
public function index(Request $request)
|
||||
{
|
||||
$airports = $this->airlineRepo
|
||||
->orderBy('name', 'asc')
|
||||
->whereOrder(['active' => true], 'name', 'asc')
|
||||
->paginate(50);
|
||||
|
||||
return AirlineResource::collection($airports);
|
||||
|
Loading…
Reference in New Issue
Block a user