*/ class BrandFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => 'brand ' . fake()->unique()->safeColorName(), 'color' => fake()->unique()->hexColor(), 'status' => fake()->boolean(75), 'tenant_id' => Tenant::query()->first('id'), ]; } }