feat: Multiple Systems

This commit is contained in:
2024-03-18 01:26:54 +01:00
parent 22ea1930c4
commit 12d8f3913c
29 changed files with 2556 additions and 90 deletions

View File

@@ -24,6 +24,7 @@ class User extends Authenticatable implements MustVerifyEmail
'email',
'avatar',
'password',
'total_votes',
];
/**
@@ -57,6 +58,11 @@ class User extends Authenticatable implements MustVerifyEmail
return $this->hasMany(UserProvider::class);
}
public function votes()
{
return $this->hasMany(Vote::class);
}
public function mustVerifyEmail(): bool
{
return $this instanceof MustVerifyEmail && !$this->hasVerifiedEmail();