feat: aggiungi supporto per superadmin in diverse risorse e aggiorna il modello utente

This commit is contained in:
2026-10-23 10:13:54 +02:00
parent f8ef927120
commit 139b1690ff
12 changed files with 109 additions and 2 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
#[Fillable(['name', 'email', 'password'])]
#[Fillable(['name', 'email', 'password', 'is_superadmin'])]
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable
{
@@ -27,6 +27,7 @@ class User extends Authenticatable
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
'is_superadmin' => 'boolean',
];
}
}