hasMany(Comment::class,'comment_id','id'); } public function user(){ return $this->hasOne(UserW::class,'id','user_id'); } public function store(){ return $this->hasOne(Store::class,'id','store_id'); } }