all() public method

Get all models.
public all ( ) : mixed
return mixed
Exemplo n.º 1
0
 /**
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function index()
 {
     $invoices = $this->invoicesTransform->transform($this->repo->all());
     return view('invoices', compact('invoices'));
 }
Exemplo n.º 2
0
 /**
  * Find all the entries
  * @return array
  */
 public function all()
 {
     return $this->model->all();
 }