ldc-mesbr-app/database/factories/BrandFactory.php
Nicolas Demangeat 9f30e3243d CRUD brand
2023-09-13 16:48:17 +02:00

39 lines
928 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' => $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()
];
}
}