Skip to content

Commit

Permalink
Merge pull request #14 from Bijay-Shre-stha/maintenance
Browse files Browse the repository at this point in the history
chore: Remove unused relationship in Question model
  • Loading branch information
Bijay-Shre-stha authored May 5, 2024
2 parents bf9a58e + b9fbaae commit a1c8911
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/Models/Question.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit a1c8911

Please sign in to comment.