27 lines
606 B
PHP
27 lines
606 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ServiceArea;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* @extends Factory<ServiceArea>
|
|
*/
|
|
class ServiceAreaFactory extends Factory
|
|
{
|
|
protected $model = ServiceArea::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'uuid' => (string) Str::uuid(),
|
|
'name' => fake()->city().' Service Area',
|
|
'code' => strtoupper(Str::random(6)),
|
|
'status' => ServiceArea::STATUS_ACTIVE,
|
|
'description' => fake()->sentence(),
|
|
];
|
|
}
|
|
}
|