laravel 中使用first()->toArray()报错误
解决方法:
$info = UserModel::where($condidtion)->first();
return $info;
if($info)
{
return $info->toArray();
}
return [];
最近访问时间:2025-05-01 09:04:36