<?php
namespace Database\Factories;
use App\Model\Segment;
use App\Model\MailList;
use Illuminate\Database\Eloquent\Factories\Factory;
class SegmentFactory extends Factory
{
protected $model = Segment::class;
public function definition(): array
{
return [
'uid' => fake()->uuid(),
'mail_list_id' => MailList::factory(),
'name' => fake()->words(2, true) . ' Segment',
'matching' => 'all',
];
}
}