belongsTo(\App\Models\User::class,'user_id'); } public function replay(){ return $this->hasMany(BlogCommentReplay::class,'blog_comment_id')->where('replay_id',0); } public function reReplay($id){ return $this->hasMany(BlogCommentReplay::class,'blog_comment_id')->where('replay_id',$id); } }