예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('omnomcom.accounts.index', ['accounts' => Account::orderBy('account_number', 'asc')->get()]);
 }
예제 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     return view('omnomcom.products.edit', ['product' => Product::findOrFail($id), 'accounts' => Account::orderBy('account_number', 'asc')->get(), 'categories' => ProductCategory::all()]);
 }