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