upgrade to new versions

This commit is contained in:
2026-04-20 12:56:52 -04:00
parent 472cb78ffb
commit 2374d02670
97 changed files with 4156 additions and 1821 deletions
+18 -2
View File
@@ -6,8 +6,9 @@ use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Filament\Models\Contracts\FilamentUser;
use Filament\Models\Contracts\HasName;
use Filament\Panel;
class User extends Authenticatable implements FilamentUser,HasName
class User extends Authenticatable implements FilamentUser, HasName
{
use Notifiable;
@@ -28,10 +29,25 @@ class User extends Authenticatable implements FilamentUser,HasName
protected $hidden = [
'password', 'remember_token',
];
public function canAccessFilament(): bool
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
public function canAccessPanel(Panel $panel): bool
{
return str_ends_with($this->email, '@tfmm.co');
}
public function getFilamentName(): string
{
return "{$this->name}";