Use Faker methods
Accessing Faker properties was deprecated in Faker 1.14.
This commit is contained in:
parent
a9d76b1cfd
commit
acb0c08ab4
|
@ -28,14 +28,14 @@ class DiscordUserFactory extends Factory
|
|||
'user_id' => function () {
|
||||
return User::factory()->create()->id;
|
||||
},
|
||||
'username' => $this->faker->userName,
|
||||
'avatar' => $this->faker->uuid,
|
||||
'username' => $this->faker->userName(),
|
||||
'avatar' => $this->faker->uuid(),
|
||||
'discriminator' => $this->faker->randomNumber(4),
|
||||
'email' => $this->faker->safeEmail,
|
||||
'verified' => $this->faker->boolean,
|
||||
'email' => $this->faker->safeEmail(),
|
||||
'verified' => $this->faker->boolean(),
|
||||
'public_flags' => $this->faker->randomNumber(1),
|
||||
'locale' => Str::random(2),
|
||||
'mfa_enabled' => $this->faker->boolean,
|
||||
'mfa_enabled' => $this->faker->boolean(),
|
||||
'premium_type' => $this->faker->randomNumber(1),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class ProductFactory extends Factory
|
|||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name,
|
||||
'name' => $this->faker->name(),
|
||||
'description' => $this->faker->text(60),
|
||||
'price' => $this->faker->numberBetween(0, 1000),
|
||||
'memory' => $this->faker->numberBetween(32, 1024),
|
||||
|
|
|
@ -24,7 +24,7 @@ class ServerFactory extends Factory
|
|||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name,
|
||||
'name' => $this->faker->name(),
|
||||
'description' => $this->faker->text(60),
|
||||
'identifier' => Str::random(30),
|
||||
'pterodactyl_id' => $this->faker->numberBetween(1000000, 1000000000),
|
||||
|
|
|
@ -24,8 +24,8 @@ class UsefulLinkFactory extends Factory
|
|||
return [
|
||||
'icon' => 'fas fa-user',
|
||||
'title' => $this->faker->text(30),
|
||||
'link' => $this->faker->url,
|
||||
'description' => $this->faker->text,
|
||||
'link' => $this->faker->url(),
|
||||
'description' => $this->faker->text(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(),
|
||||
'credits' => $this->faker->numberBetween(0, 1500),
|
||||
'last_seen' => $this->faker->dateTimeBetween(now(), '+30 days'),
|
||||
'email_verified_at' => $this->faker->dateTimeBetween('-30 days', now()),
|
||||
|
|
Loading…
Reference in a new issue