engagement system

This commit is contained in:
2026-02-06 15:13:20 +02:00
parent 2e1ce0d93b
commit 7a99c3eb59
15 changed files with 1079 additions and 2 deletions
+24
View File
@@ -120,4 +120,28 @@ class User extends Authenticatable
{
return $this->hasMany(Product::class);
}
/**
* Get the upvotes for the user.
*/
public function upvotes(): HasMany
{
return $this->hasMany(Upvote::class);
}
/**
* Get the comments for the user.
*/
public function comments(): HasMany
{
return $this->hasMany(Comment::class);
}
/**
* Get the bookmarks for the user.
*/
public function bookmarks(): HasMany
{
return $this->hasMany(Bookmark::class);
}
}