Skip to content

Commit

Permalink
- fix factory
Browse files Browse the repository at this point in the history
  • Loading branch information
EwelinaSkrzypacz committed Dec 3, 2024
1 parent 0b6d43f commit cad9b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
use Interns2024c\Models\User;

Expand All @@ -19,7 +20,7 @@ public function definition(): array
"name" => fake()->name(),
"email" => fake()->unique()->safeEmail(),
"email_verified_at" => now(),
"password" => "$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi",
"password" => Hash::make("password"),
"remember_token" => Str::random(10),
];
}
Expand Down

0 comments on commit cad9b05

Please sign in to comment.