首页 > Laravel数据表一对一关联都用hasOne还是一个hasOne和一个belongsTo?
Laravel数据表一对一关联,两张数据表都用hasOne?还是一张表用hasOne,另一张表用belongsTo?
一张表用hasOne, 一张表用belongsTo