*/ class SettingsFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'sub_title' => fake()->unique()->realText(65), 'footer_phrase' => fake()->unique()->realText(38), 'color' => fake()->unique()->hexColor(), 'home_timeout' => \random_int(20, 100), 'tenant_id' => Tenant::query()->first('id'), ]; } }