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