27 lines
655 B
PHP
27 lines
655 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Tenant;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Brand>
|
|
*/
|
|
class BrandFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => 'brand ' . fake()->unique()->safeColorName(),
|
|
'color' => fake()->unique()->hexColor(),
|
|
'status' => fake()->boolean(75),
|
|
'tenant_id' => Tenant::query()->first('id'),
|
|
];
|
|
}
|
|
}
|