/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return \App\Inventory::orderBy('name', 'asc')->get();
 }
Esempio n. 2
0
 public function getShow()
 {
     $items = Inventory::orderBy('created_at', 'asc')->get();
     return view('db.inventories.show', ['items' => $items]);
 }