model = $publicity; parent::__construct(); } /** * Show publicity's list. * * @param string $slug * * @return response */ protected function index() { $publicities = $this->model->all(); return $this->theme->of('publicity::public.publicity.index', compact('publicities'))->render(); } /** * Show publicity. * * @param string $slug * * @return response */ protected function show($slug) { $publicity = $this->model->findBySlug($slug); return $this->theme->of('publicity::public.publicity.show', compact('publicity'))->render(); } }