Add follow system, activity feed, notifications, sitemap, caching, Scout search
This commit is contained in:
@@ -20,6 +20,7 @@ class User extends Authenticatable
|
||||
public function reviews(): HasMany { return $this->hasMany(Review::class); }
|
||||
public function lists(): HasMany { return $this->hasMany(UserList::class); }
|
||||
public function activities(): HasMany { return $this->hasMany(Activity::class)->latest(); }
|
||||
public function notifications(): HasMany { return $this->hasMany(Notification::class)->latest('created_at'); }
|
||||
|
||||
public function following(): BelongsToMany
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user