ldc-crm/database/factories/BrandFactory.php

32 lines
666 B
PHP
Raw Permalink Normal View History

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
*/
public function definition(): array
2021-03-14 10:45:42 +01:00
{
return [
'name' => $this->faker->unique()->company,
'url' => $this->faker->url,
'url_claim' => $this->faker->url,
'domain' => $this->faker->unique()->domainName,
2021-03-14 10:45:42 +01:00
];
}
}