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