Skip to content

Commit

Permalink
[8.x] Using faker method instead of properties (laravel#5583)
Browse files Browse the repository at this point in the history
After Faker PHP 1.14 using properties is deprecated and is recommended to use methods instead.
  • Loading branch information
JuanDMeGon authored Apr 13, 2021
1 parent 5474127 commit 0e8e9a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class UserFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->name,
'email' => $this->faker->unique()->safeEmail,
'name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
Expand Down

0 comments on commit 0e8e9a0

Please sign in to comment.