se modifica userfactory para crear tokens
This commit is contained in:
@@ -27,8 +27,11 @@ class UserFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => fake()->name(),
|
||||
'email' => fake()->unique()->safeEmail(),
|
||||
'name' => $this->faker->name(),
|
||||
'email' => $this->faker->unique()->safeEmail(),
|
||||
'telefono' => $this->faker->phoneNumber(),
|
||||
'direccion' => $this->faker->address(),
|
||||
'status' => 1,
|
||||
'email_verified_at' => now(),
|
||||
'password' => static::$password ??= Hash::make('password'),
|
||||
'two_factor_secret' => null,
|
||||
|
||||
@@ -16,8 +16,8 @@ return new class extends Migration
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->unsignedBigInteger('telefono')->unique();
|
||||
$table->string('direccion');
|
||||
$table->string('telefono',20)->nullable()->unique();
|
||||
$table->string('direccion')->nullable();
|
||||
$table->string('password');
|
||||
$table->string('code')->nullable();
|
||||
$table->boolean('status');
|
||||
|
||||
Reference in New Issue
Block a user