newsRepo = $newsRepo; } /** * Return all the airlines, paginated * @param Request $request * @return mixed */ public function index(Request $request) { $news = $this->newsRepo ->orderBy('created_at', 'desc') ->paginate(); return NewsResource::collection($news); } }