repository = $v_l_a_n_s; parent::__construct(); } /** * Show v_l_a_n_s's list. * * @param string $slug * * @return response */ protected function index() { $v_l_a_n_s_s = $this->repository ->pushCriteria(app('Litepie\Repository\Criteria\RequestCriteria')) ->scopeQuery(function($query){ return $query->orderBy('id','DESC'); })->paginate(); return $this->theme->of('v_l_a_n::public.v_l_a_n_s.index', compact('v_l_a_n_s_s'))->render(); } /** * Show v_l_a_n_s. * * @param string $slug * * @return response */ protected function show($slug) { $v_l_a_n_s = $this->repository->scopeQuery(function($query) use ($slug) { return $query->orderBy('id','DESC') ->where('slug', $slug); })->first(['*']); return $this->theme->of('v_l_a_n::public.v_l_a_n_s.show', compact('v_l_a_n_s'))->render(); } }