Select with hasOne in Laravel

后端 未结 0 1542
后悔当初
后悔当初 2021-01-16 11:40

I have three models

Posts
Users
UserImages

In Posts I have

public function user() {
    return $this->belongsTo(new User)-&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题