X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/916a82616f1e2c750a1f01109e65ad2b603a79ce..refs/pull/3012/head:/app/Auth/User.php diff --git a/app/Auth/User.php b/app/Auth/User.php index f4fd45281..68e2ad625 100644 --- a/app/Auth/User.php +++ b/app/Auth/User.php @@ -18,6 +18,7 @@ use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; @@ -39,9 +40,11 @@ use Illuminate\Support\Collection; * @property string $external_auth_id * @property string $system_name * @property Collection $roles + * @property Collection $mfaValues */ class User extends Model implements AuthenticatableContract, CanResetPasswordContract, Loggable, Sluggable { + use HasFactory; use Authenticatable; use CanResetPassword; use Notifiable; @@ -89,7 +92,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon /** * Returns the default public user. */ - public static function getDefault(): User + public static function getDefault(): self { if (!is_null(static::$defaultUser)) { return static::$defaultUser; @@ -335,7 +338,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon } /** - * @inheritdoc + * {@inheritdoc} */ public function logDescriptor(): string { @@ -343,7 +346,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon } /** - * @inheritDoc + * {@inheritdoc} */ public function refreshSlug(): string {