/** * Display a listing of the Location. * * @param Request $request * @return Response */ public function index(Request $request) { $this->locationRepository->pushCriteria(new RequestCriteria($request)); $locations = $this->locationRepository->paginate(25); return view('locations.index')->with('locations', $locations); }