Exemplo n.º 1
0
 public function index()
 {
     $tasks = Tasks::all();
     return View::make('tasks.index')->with("tasks", $tasks);
 }
Exemplo n.º 2
0
 /**
  * Statistics for Dashboard
  */
 public function allTasks()
 {
     return Tasks::all()->count();
 }