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