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