Пример #1
0
 public function Index()
 {
     $tasks = Purchase::all();
     return View::make('admin.purchase')->with('tasks', $tasks);
 }
Пример #2
0
 /**
  * Show the application dashboard.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $purchases = Purchase::all();
     $total = 0;
     return view('site.home', compact('purchases', 'total'));
 }