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