public function index()
 {
     $tasks = Task::orderBy('updated_at', 'desc')->get();
     return View::make('Middle.Web.Task.index', compact('tasks'));
 }
 public function index()
 {
     $tasks = Task::orderBy('updated_at', 'desc')->get();
     return response(['data' => $tasks, 'status' => 'success', 'message' => '']);
 }