hasOne('App\Models\UserInfoModel','id','user_id'); } public function dreamImgs() { return $this->hasMany('App\Models\DreamImages','dream_id'); } public function dreamImgsFirst() { return $this->hasOne('App\Models\DreamImages','dream_id','id'); } // 支持过的梦想 public function systemInfo() { return $this->hasMany('App\Models\SystemInfoModel','other_id','id'); } }