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