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