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