NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
``` return Response::make($contents); return Response::make($contents, 200); return Response::json(array('key' => 'value')); return Response::json(array('key' => 'value')) ->setCallback(Input::get('callback')); return Response::download($filepath); return Response::download($filepath, $filename, $headers); // 创建一个回应且修改其头部信息的值 $response = Response::make($contents, 200); $response->header('Content-Type', 'application/json'); return $response; // 为回应附加上 cookie return Response::make($content) ->withCookie(Cookie::make('key', 'value')); ```