mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Use Faker methods
Accessing Faker properties was deprecated in Faker 1.14.
This commit is contained in:
@@ -20,8 +20,8 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
|
||||
static $password;
|
||||
|
||||
return [
|
||||
'name' => $faker->name,
|
||||
'email' => $faker->unique()->safeEmail,
|
||||
'name' => $faker->name(),
|
||||
'email' => $faker->unique()->safeEmail(),
|
||||
'password' => $password ?: $password = bcrypt('secret'),
|
||||
'remember_token' => Str::random(10),
|
||||
];
|
||||
|
||||
@@ -20,7 +20,7 @@ class ReleaseFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name,
|
||||
'name' => $this->faker->name(),
|
||||
'searchname' => $this->faker->unique()->name(),
|
||||
'fromname' => $this->faker->unique()->safeEmail(),
|
||||
'postdate' => $this->faker->date(),
|
||||
|
||||
Reference in New Issue
Block a user