12345678910111213141516171819202122232425262728293031323334 |
- <?php
-
- namespace Database\Seeders;
-
- // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
- use Illuminate\Database\Seeder;
- use Illuminate\Support\Facades\DB;
- use Illuminate\Support\Facades\Hash;
-
- class DatabaseSeeder extends Seeder
- {
- /**
- * Seed the application's database.
- */
- public function run(): void
- {
- // DB::table('users')->insert([
- // 'name'=>'RafiAnwar',
- // 'email' => 'email@gmail.com',
- // 'password'=>Hash::make('123456'),
- // ]);
- $this->call([
- StatusSeeder::class,
- // tambahkan seeder lain jika ada
- ]);
- $this->call([
- UserDummySeeder::class,
- // tambahkan seeder lain jika ada
- ]);
- // \App\Models\User::factory(10)->create();
-
-
- }
- }
|