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'));
 }