*/ final class FormSchemaWebhookFactory extends Factory { protected $model = FormSchemaWebhook::class; /** @return array */ public function definition(): array { return [ 'form_schema_id' => FormSchema::factory(), 'name' => 'Webhook '.fake()->words(2, true), 'trigger_event' => 'submission_submitted', 'url' => 'https://webhook.example.com/'.Str::lower(Str::random(12)), 'secret' => Str::random(32), 'is_active' => true, ]; } }