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