*/ final class BrandFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Brand::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => fake()->unique()->word, 'filter' => fake()->word, ]; } }