app/Http/Controllers/TaskController.php
/**
     * Display a listing of the resource.
     *
     * @return Response
     */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index()
    {
        $tasks = Task::all();
        return response()->json($tasks);
    }
public function index ( ) { $ tasks = Task :: all ( ) ; return response ( ) -> json ( $ tasks ) ; }
Display a listing of the resource.
Display a listing of the resource .
// Récupérer les taches de la BDD