This commit is contained in:
Dr Masroor Ehsan 2025-01-29 22:26:44 +06:00
parent 27c3cd5d8d
commit 72b1bbc0e7
2 changed files with 5 additions and 4 deletions

View File

@ -38,7 +38,7 @@ class User extends Authenticatable implements FilamentUser
use HasProfilePhoto;
use HasRoles;
use Notifiable;
use TwoFactorAuthenticatable;
// use TwoFactorAuthenticatable;
public array $info = [];

View File

@ -15,9 +15,9 @@ public function run(): void
// User::factory(10)->create();
$usr = User::factory()->create([
'first_name' => 'PACS Sync',
'display_name' => 'PACS Sync Agent',
'username' => '$$_pacs_sync_$$',
'first_name' => 'PACS Agent',
'display_name' => 'PACS Agent',
'username' => '$$_pacs_agent_$$',
'password' => bcrypt(fake()->password(20)),
'is_active' => false,
]);
@ -30,6 +30,7 @@ public function run(): void
'email' => 'admin@example.com',
'email_verified_at' => now(),
'phone' => '+8801733938582',
'is_active' => true,
]);
$usr->assignRole(Role::Admin);