response 函数创建 响应 实例,或者获得响应工厂的实例:
response
return response('Hello World', 200, $headers); return response()->json(['foo' => 'bar'], 200, $headers);