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