Do all one-to-one relationships between Laravel data tables use hasOne or hasOne and belongsTo?
天蓬老师
天蓬老师 2017-05-16 16:54:24
0
1
871

Laravel data tables are related one-to-one, use hasOne for both data tables? Or should one table use hasOne and the other table use belongsTo?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
Peter_Zhu

One table uses hasOne, one table uses belongsTo

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!