API: Only show active airlines

This commit is contained in:
Nabeel Shahzad 2018-02-12 12:05:10 -06:00
parent ee71f4a1c8
commit 2678514077

View File

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