search; $pageLimit = $request->input('pageLimit', config('database.pagination.limit')); $page = Attendee::pushScope(new RequestScope()) ->pushScope(new AttendeePublicScope()) ->paginate($pageLimit) ->withQueryString(); $attendees = new AttendeesCollection($page); $categories = []; $tags = []; $recent = []; return $this->response->setMetaTitle(trans('schedule::attendee.names')) ->view('schedule::public.attendee.index') ->data(compact('attendees', 'categories', 'tags', 'recent')) ->output(); } /** * Show attendee. * * @param string $slug * * @return response */ protected function show(PublicRequest $request, $slug) { $model = Attendee::findBySlug($slug); $data = new AttendeeResource($model); $categories = []; $tags = []; $recent = []; return $this->response->setMetaTitle($data['title'] . trans('schedule::attendee.name')) ->view('schedule::public.attendee.show') ->data(compact('data', 'categories', 'tags', 'recent')) ->output(); } }