Skip to content

Commit

Permalink
[8.x] Using faker method instead of properties (#6981)
Browse files Browse the repository at this point in the history
* [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.
  • Loading branch information
JuanDMeGon authored Apr 13, 2021
1 parent 0564e04 commit 08cca9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions database-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ To see an example of how to write a factory, take a look at the `database/factor
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
4 changes: 2 additions & 2 deletions releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Eloquent [model factories](/docs/{{version}}/database-testing#defining-model-fac
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 08cca9a

Please sign in to comment.