public function all()
 {
     return Product::all();
 }
Esempio n. 2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $products = \bepc\Models\Product::all();
     $customers = $this->customer->all();
     return view('self.blade.order.create')->with(compact('products', 'customers'));
 }