Use Faker methods
Accessing Faker properties was deprecated in Faker 1.14.
This commit is contained in:
@@ -24,14 +24,14 @@ class EventFactory extends Factory
|
||||
return [
|
||||
'title' => $this->faker->sentence(),
|
||||
'location' => $this->faker->randomElement(['online', 'physical']),
|
||||
'address' => $this->faker->address,
|
||||
'address' => $this->faker->address(),
|
||||
'start_at' => $startDate,
|
||||
'end_at' => $endDate,
|
||||
'publish_at' => $publishDate,
|
||||
'status' => $this->faker->randomElement(['draft', 'soon', 'open', 'closed', 'cancelled']),
|
||||
'registration_type' => $this->faker->randomElement(['none', 'email', 'link', 'message']),
|
||||
'registration_data' => $this->faker->sentence(),
|
||||
'hero' => $this->faker->uuid,
|
||||
'hero' => $this->faker->uuid(),
|
||||
'content' => $this->faker->paragraphs(3, true),
|
||||
'price' => $this->faker->numberBetween(0, 150),
|
||||
'ages' => $this->faker->regexify('\d+(\+|\-\d+)?'),
|
||||
|
||||
Reference in New Issue
Block a user