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