fixed post count

This commit is contained in:
2026-01-23 19:26:40 +01:00
parent 79ac0cdca5
commit a96913bffa
5 changed files with 18 additions and 13 deletions

View File

@@ -107,6 +107,11 @@ class User extends Authenticatable implements MustVerifyEmail
return $this->hasMany(Post::class);
}
public function threads(): HasMany
{
return $this->hasMany(Thread::class);
}
public function thanksGiven(): HasMany
{
return $this->hasMany(PostThank::class);