/** * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function index() { $invoices = $this->invoicesTransform->transform($this->repo->all()); return view('invoices', compact('invoices')); }
/** * Find all the entries * @return array */ public function all() { return $this->model->all(); }