From 2678514077a418d42c214c4f67aa9d780b610941 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 12 Feb 2018 12:05:10 -0600 Subject: [PATCH] API: Only show active airlines --- app/Http/Controllers/Api/AirlineController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AirlineController.php b/app/Http/Controllers/Api/AirlineController.php index f50e8114..341ffd1f 100644 --- a/app/Http/Controllers/Api/AirlineController.php +++ b/app/Http/Controllers/Api/AirlineController.php @@ -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);