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

表示没有使用过httprequest,也不清楚你的需求和环境是什么,所以看看也没有类似经验的人解决吧

sodasix

The Response content must be a string or object implementing __toString()
相应必须是字符串或者对象类型能被 ToString 的

sodasix

响应 - -