2023-02-23 16:23:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
|
|
use App\Models\Brand;
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @extends Factory<\App\Models\Brand>
|
|
|
|
|
*/
|
|
|
|
|
final class BrandFactory extends Factory
|
|
|
|
|
{
|
|
|
|
|
/**
|
2023-06-21 10:24:56 +00:00
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
2023-02-23 16:23:00 +01:00
|
|
|
protected $model = Brand::class;
|
|
|
|
|
|
|
|
|
|
/**
|
2023-06-21 10:24:56 +00:00
|
|
|
* Define the model's default state.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
2023-02-23 16:23:00 +01:00
|
|
|
public function definition(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
2023-09-06 17:53:13 +02:00
|
|
|
'name' => fake()->unique()->word,
|
2023-02-23 16:23:00 +01:00
|
|
|
'filter' => fake()->word,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|