FEATURE: add comments management
This commit is contained in:
@@ -16,11 +16,11 @@ class Comment extends Model
|
||||
|
||||
public function author()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
public function article()
|
||||
{
|
||||
return $this->belongsTo(Content::class);
|
||||
return $this->belongsTo(Content::class, 'content_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user