Brak opisu
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.

DatabaseSeeder.php 818B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Database\Seeders;
  3. // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
  4. use Illuminate\Database\Seeder;
  5. use Illuminate\Support\Facades\DB;
  6. use Illuminate\Support\Facades\Hash;
  7. class DatabaseSeeder extends Seeder
  8. {
  9. /**
  10. * Seed the application's database.
  11. */
  12. public function run(): void
  13. {
  14. // DB::table('users')->insert([
  15. // 'name'=>'RafiAnwar',
  16. // 'email' => 'email@gmail.com',
  17. // 'password'=>Hash::make('123456'),
  18. // ]);
  19. $this->call([
  20. StatusSeeder::class,
  21. // tambahkan seeder lain jika ada
  22. ]);
  23. $this->call([
  24. UserDummySeeder::class,
  25. // tambahkan seeder lain jika ada
  26. ]);
  27. // \App\Models\User::factory(10)->create();
  28. }
  29. }