Skip to content

Commit 08cca9a

Browse files
authored
[8.x] Using faker method instead of properties (#6981)
* [8.x] Using faker methods instead of properties In concordance with [#5583](laravel/laravel#5583), as after Faker PHP 1.14, using properties is deprecated, and it is recommended to use methods instead. See [#164](FakerPHP/Faker#164) for details. * [8.x] Using faker method instead of properties In concordance with [#5583](laravel/laravel#5583), as after Faker PHP 1.14, using properties is deprecated, and it is recommended to use methods instead. See [#164](FakerPHP/Faker#164) for details.
1 parent 0564e04 commit 08cca9a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

database-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ To see an example of how to write a factory, take a look at the `database/factor
8888
public function definition()
8989
{
9090
return [
91-
'name' => $this->faker->name,
92-
'email' => $this->faker->unique()->safeEmail,
91+
'name' => $this->faker->name(),
92+
'email' => $this->faker->unique()->safeEmail(),
9393
'email_verified_at' => now(),
9494
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
9595
'remember_token' => Str::random(10),

releases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Eloquent [model factories](/docs/{{version}}/database-testing#defining-model-fac
8484
public function definition()
8585
{
8686
return [
87-
'name' => $this->faker->name,
88-
'email' => $this->faker->unique()->safeEmail,
87+
'name' => $this->faker->name(),
88+
'email' => $this->faker->unique()->safeEmail(),
8989
'email_verified_at' => now(),
9090
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
9191
'remember_token' => Str::random(10),

0 commit comments

Comments
 (0)