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