*/ 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() { return [ 'name' => $this->faker->unique()->company(), 'contact_mail' => $this->faker->unique()->email(), 'rcs' => \sprintf( 'RCS %s B %s', $this->faker->unique()->city(), $this->faker->randomNumber(9, true) ), 'crm_token' => $this->faker->uuid(), 'crm_password' => $this->faker->uuid() ]; } }