*/ public function definition(): array { $code = strval(fake()->numberBetween(1, 1000)); $lastname = fake()->lastname(); $firstname = fake()->firstName(); return [ 'breeder_code' => $code, 'inuav_codes' => [ fake()->text(10), fake()->text(10), ], 'slug' => sprintf('%s-%s-%s', $code, $lastname, $firstname), 'first_name' => $firstname, 'last_name' => fake()->lastName(), 'picture' => '', 'picture_title' => fake()->words(5, true), 'picture_alt' => fake()->words(8, true), 'postal_code' => fake()->postcode(), 'department' => \collect(Department::toArray())->random()->value, 'place' => fake()->word(), 'testimony' => fake()->text(), 'latitude' => fake()->randomFloat(2), 'longitude' => fake()->randomFloat(2), 'geo_type' => \collect(GeoType::toArray())->random()->value, 'ocbStatus' => \collect(OCBStatus::toArray())->random()->value, 'ocbType' => \collect(OCBType::toArray())->random()->value, // FIXME: utilité de ce champs, aucune indication 'audit' => 1, 'valid_marketing_date' => Carbon::now(), 'approaches' => [], 'is_highlighted' => fake()->boolean(75), 'order' => 1, 'published' => fake()->boolean(75), ]; } }