首页 > 解决方案 > 我们应该将 laravel hasone 关系 return null 替换为对象数组吗?

问题描述

当 Laravel 关系在 hasOne 中返回 null 时,如何将其转换为对象数组?

标签: phplaravel

解决方案


推荐阅读