settingRepo = $settingRepo; } /** * Return all the airlines, paginated * * @param Request $request * * @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection */ public function index(Request $request) { $settings = $this->settingRepo ->orderBy('order', 'asc')->get(); return SettingResource::collection($settings); } }