Membuat akun SuperAdmin

This commit is contained in:
2026-06-05 15:39:38 +07:00
parent 35b18f69c7
commit dfff1f18e9
6 changed files with 61 additions and 7 deletions
+3 -7
View File
@@ -8,18 +8,14 @@ use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
use WithoutModelEvents;
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
// Memanggil SuperAdminSeeder
$this->call([
SuperAdminSeeder::class,
]);
}
}