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