laravel取出Response的返回结果 单雨徒 2024-04-08 95 阅读1分钟 laravel取出Response的返回结果 $res = new User(); $data = $res->getData(true); $data就是一个数组 $data = $res->getContent(); 此时$data还需要使用json_decode($data,true)转换为数组