Browse Source

Seeded users should be verified by default

the email_verified_at column value is used to determine whether a user has verified her account.
Gaurav Makhecha 1 year ago
parent
commit
62c5bbf820
1 changed files with 1 additions and 0 deletions
  1. 1 0
      database/factories/UserFactory.php

+ 1 - 0
database/factories/UserFactory.php

@@ -17,6 +17,7 @@ $factory->define(App\User::class, function (Faker $faker) {
     return [
         'name' => $faker->name,
         'email' => $faker->unique()->safeEmail,
+        'email_verified_at' => now(),
         'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
         'remember_token' => str_random(10),
     ];