*/ class AdvertisFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'key' => str($this->faker->unique()->word())->snake(), 'title' => $this->faker->sentence(), 'tracking_code' => [ 'mobile' => $this->faker->randomHtml(), 'desktop' => $this->faker->randomHtml(), 'tablet' => $this->faker->randomHtml(), ], 'status' => $this->faker->boolean(), ]; } }