ldc-mesbr-app/database/factories/BrandFactory.php
2023-11-24 16:05:16 +01:00

39 lines
892 B
PHP

<?php
namespace Database\Factories;
use App\Models\Brand;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Brand>
*/
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' => fake()->unique()->company(),
'contact_mail' => fake()->unique()->email(),
'rcs' => \sprintf(
'RCS %s B %s',
fake()->unique()->city(),
fake()->randomNumber(9, true)
),
'crm_token' => fake()->uuid(),
'crm_password' => fake()->uuid()
];
}
}