//直接响应字符串 Route::get('example/test20', function(){ return 'hello world'; }); //定制HTTP响应 Route::get('example/test21', function(){ return Response::make('内容不存在', 404); }); //响应视图 Route::get('example/test22', function(){ return Response::view('test22'); }); //给响应添加cookie Route::get('example/test23', function(){ return Response::view('test22')->withCookie(Cookie::make('key', 'this is value'));