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