laravel 中使用first()->toArray()报错误
xuexi 2023-07-04 17:34:51 发表在:PHP 查看数:1014

解决方法:

       $info = UserModel::where($condidtion)->first();
        return $info;
        if($info)
        {
            return $info->toArray();
        }
        return [];
最近访问时间:2025-06-05 22:51:32
知识库:352条鸣谢:TAY  备案号:蜀ICP备2024090044号-2