You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
644 B
28 lines
644 B
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Support\Str;
|
|
|
|
class AdminUsersSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
//
|
|
DB::table('admin_users')->insert(
|
|
[
|
|
'username' => 'Admin',
|
|
'name' => 'Admin',
|
|
'email' => fake()->unique()->safeEmail(),
|
|
'password' => Hash::make('12345678'), // password
|
|
'remember_token' => Str::random(10)
|
|
]
|
|
);
|
|
}
|
|
}
|
|
|