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