*/ class PlanFactory extends Factory { protected $model = Plan::class; public function definition(): array { $monthly = fake()->numberBetween(19, 199) * 100; return [ 'slug' => fake()->unique()->slug(2), 'name' => fake()->words(2, true), 'monthly_price_cents' => $monthly, 'yearly_price_cents' => $monthly * 10, 'currency' => 'EUR', 'press_release_quota' => fake()->numberBetween(3, 60), 'daily_limit' => null, 'is_active' => true, 'sort_order' => fake()->numberBetween(0, 10), ]; } public function inactive(): static { return $this->state(fn (): array => ['is_active' => false]); } }