Fix paginate on airlines
This commit is contained in:
parent
a5a21fb2fd
commit
b18f1bbe6c
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user