From b9fbaae4cc796f0826d6880ed67bb1feca8e74c4 Mon Sep 17 00:00:00 2001 From: Bijay Shrestha Date: Sat, 4 May 2024 09:33:14 +0545 Subject: [PATCH] chore: Remove unused relationship in Question model --- app/Models/Question.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Models/Question.php b/app/Models/Question.php index 34c7f8a..0306dce 100644 --- a/app/Models/Question.php +++ b/app/Models/Question.php @@ -11,9 +11,6 @@ class Question extends Model // protected $fillable = ['title', 'description', 'communityName', 'user_id']; protected $fillable = ['title', 'description', 'communityName', 'user_id']; - public function community(){ - return $this->belongsTo(Community::class, 'communityName' , 'id'); - } public function user(){ return $this->belongsTo(User::class, 'user_id' , 'id'); }