我试图使用
return Response::json('data', $request);
返回数据,但是出现了错误:
请问FatalErrorException in ProjectsController.php line 74: Call to undefined method Illuminate\Http\Response::json()
Response::json()
在哪里定义?我做错了什么?