Skip to content

Commit 0e8e9a0

Browse files
authored
[8.x] Using faker method instead of properties (laravel#5583)
After Faker PHP 1.14 using properties is deprecated and is recommended to use methods instead.
1 parent 5474127 commit 0e8e9a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/factories/UserFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class UserFactory extends Factory
2323
public function definition()
2424
{
2525
return [
26-
'name' => $this->faker->name,
27-
'email' => $this->faker->unique()->safeEmail,
26+
'name' => $this->faker->name(),
27+
'email' => $this->faker->unique()->safeEmail(),
2828
'email_verified_at' => now(),
2929
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
3030
'remember_token' => Str::random(10),

0 commit comments

Comments
 (0)