/** * {@inheritdoc} */ public function indexAction() { return ['orders' => $this->orders->getAll()]; }
/** * @return \Illuminate\View\View */ public function indexAction() { $orders = $this->orderRepository->getAll(); return view('orders/index', ['orders' => $orders]); }