28 lines
768 B
PHP
28 lines
768 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\AdminUser;
|
|
|
|
class AdminSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// Create Eliza admin user
|
|
// Insert directly to avoid any model mutators
|
|
\DB::table('admin_users')->insert([
|
|
'username' => 'eliza',
|
|
'password' => '$2y$12$0ALddIeVIN8UN9.6Des9reVTdu4RpIRgHoQzowPp1wYwjK7.RafhK', // Password: AXEoZWk2AMAD0naw
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
]);
|
|
|
|
$this->command->info('Admin user created successfully!');
|
|
$this->command->info('Username: eliza');
|
|
$this->command->info('Password: (same as v1.0)');
|
|
}
|
|
}
|