This commit is contained in:
Saufi
2026-05-26 10:25:37 +08:00
commit 0c0cef7387
85 changed files with 15340 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
User::updateOrCreate([
'username' => 'cukai',
], [
'name' => 'User Cukai',
'role' => 'user',
'email' => 'cukai@example.local',
'password' => Hash::make('123'),
]);
User::updateOrCreate([
'username' => 'admin',
], [
'name' => 'Admin',
'role' => 'admin',
'email' => 'admin@example.local',
'password' => Hash::make('admin123'),
]);
}
}