37 lines
976 B
PHP
37 lines
976 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
DB::table('users')->insert([
|
|
[
|
|
'id' => '69b41063-c44c-40ce-b131-a06898bbc13a',
|
|
'name' => 'Alpha Administrator',
|
|
'email' => 'admin@cdc.com',
|
|
'password' => bcrypt('password'),
|
|
'role' => 'admin',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
[
|
|
'id' => '69b41063-c44c-40ce-b131-a06898bbc13b',
|
|
'name' => 'Alpha Student',
|
|
'email' => 'student@cdc.com',
|
|
'password' => bcrypt('password'),
|
|
'role' => 'student',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
]);
|
|
}
|
|
}
|