Route::get('tasks', function () { return response()->json( [ ['id' => 1, 'name' => 'Angular tanulás'], ['id' => 2, 'name' => 'Laravel tanulás'] ] ); });