The Response content must be a string or object implementing __toString(), "boolean" given.

我在用httprequest模拟HTTP发送post请求,返回如下错误:

>UnexpectedValueException in Response.php line 403:
>The Response content must be a string or object implementing __toString(), "boolean" given.


    
    public function delete(Request $request)
     
     {
         
         $user = User::find($request->get('id'));
         
         $user->delete();
     }

post请求为http post localhost:8000/users/delete id=1

请问这该如何解决?

JellyBool
修改的评论也不能少于六个字哦!
sodasix
修改的评论也不能少于六个字哦!
sodasix
修改的评论也不能少于六个字哦!