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