2021-03-14 10:45:42 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
|
|
use App\Models\Brand;
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
*/
|
2025-07-24 11:32:12 +02:00
|
|
|
public function definition(): array
|
2021-03-14 10:45:42 +01:00
|
|
|
{
|
|
|
|
|
return [
|
2025-08-07 16:07:58 +02:00
|
|
|
'name' => $this->faker->unique()->company,
|
2025-07-24 11:32:12 +02:00
|
|
|
'url' => $this->faker->url,
|
|
|
|
|
'url_claim' => $this->faker->url,
|
2025-08-07 16:07:58 +02:00
|
|
|
'domain' => $this->faker->unique()->domainName,
|
2021-03-14 10:45:42 +01:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|