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