36 lines
956 B
PHP
36 lines
956 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
DB::table('users')->insert([
|
|
'nama' => 'Bilqis',
|
|
'username' => 'admin1',
|
|
'email' => 'admin@flodo.com',
|
|
'password' => Hash::make('password123'),
|
|
'no_wa' => '0893781263',
|
|
'alamat' => 'Kauman',
|
|
'role' => 'admin',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
], [
|
|
'nama' => 'Debby',
|
|
'username' => 'ownerdebby',
|
|
'email' => 'debby@flodo.com',
|
|
'password' => Hash::make('password123'),
|
|
'no_wa' => '0893781263',
|
|
'alamat' => 'Kauman',
|
|
'role' => 'owner',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
]);
|
|
}
|
|
}
|