generated from Flycro/laravel-nuxt
feat: Multiple Systems
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user