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