mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:14:04 +00:00
Make the (Scoped)Comment model distinction clearer
This commit is contained in:
parent
47fe86c21e
commit
1f9a344f33
3 changed files with 7 additions and 3 deletions
|
|
@ -24,6 +24,7 @@ class Post extends Model
|
|||
|
||||
public function scoped_comments(): HasMany
|
||||
{
|
||||
return $this->hasMany(Comment::class);
|
||||
// ScopedComment = Comment model with the BelongsToPrimaryModel trait
|
||||
return $this->hasMany(ScopedComment::class);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue