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

解决方法:

       $info = UserModel::where($condidtion)->first();
        return $info;
        if($info)
        {
            return $info->toArray();
        }
        return [];
最近访问时间:2025-05-01 09:04:36
知识库:340条鸣谢:TAY  备案号:蜀ICP备2024090044号