diff --git a/app/Models/User.php b/app/Models/User.php index c2e6518e..483e4b52 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -47,14 +47,17 @@ class User extends Authenticatable implements FilamentUser ]; /** - * The attributes that should be cast. + * Get the attributes that should be cast. * - * @var array + * @return array */ - protected $casts = [ - 'email_verified_at' => 'datetime', - 'password' => 'hashed', - ]; + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + ]; + } public function canAccessPanel(Panel $panel): bool {