My SMM panel
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.
 
 
 
 
 
 

35 line
683 B

  1. <?php
  2. namespace Database\Seeders;
  3. use Illuminate\Database\Seeder;
  4. use App\Models\User;
  5. use Illuminate\Support\Facades\Hash;
  6. class DatabaseSeeder extends Seeder
  7. {
  8. /**
  9. * Seed the application's database.
  10. *
  11. * @return void
  12. */
  13. public function run()
  14. {
  15. User::create([
  16. 'name' => 'test_user_unverified',
  17. 'email' => 'unverified@example.com',
  18. 'role' => 'client',
  19. 'active' => true,
  20. 'password' => Hash::make("test123")
  21. ]);
  22. User::create([
  23. 'name' => 'test_user_verified',
  24. 'email' => 'verified@example.com',
  25. 'email_verified_at' => now(),
  26. 'role' => 'client',
  27. 'active' => true,
  28. 'password' => Hash::make("test123")
  29. ]);
  30. }
  31. }