generated from Flycro/laravel-nuxt
feat: Add UserDeadline Relation
This commit is contained in:
@@ -63,6 +63,11 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
return $this->hasMany(Vote::class);
|
||||
}
|
||||
|
||||
public function deadlinesProgress()
|
||||
{
|
||||
return $this->hasMany(UserDeadline::class);
|
||||
}
|
||||
|
||||
public function mustVerifyEmail(): bool
|
||||
{
|
||||
return $this instanceof MustVerifyEmail && !$this->hasVerifiedEmail();
|
||||
|
||||
Reference in New Issue
Block a user