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

解决方法:

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