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