Fix paginate on airlines

This commit is contained in:
Nabeel Shahzad 2021-06-11 09:40:34 -04:00
parent a5a21fb2fd
commit b18f1bbe6c

View File

@ -30,9 +30,9 @@ class AirlineController extends Controller
*/
public function index(Request $request)
{
$airports = $this->airlineRepo->whereOrder(['active' => true], 'name')->get();
$airlines = $this->airlineRepo->whereOrder(['active' => true], 'name')->paginate();
return AirlineResource::collection($airports);
return AirlineResource::collection($airlines);
}
/**