*/ class OutboundWebhookSubscriptionFactory extends Factory { protected $model = OutboundWebhookSubscription::class; public function definition(): array { return [ 'tenant_id' => Tenant::factory(), 'user_id' => User::factory(), 'name' => 'Webhook', 'target_url' => 'https://'.fake()->domainName().'/webhook', 'secret_hash' => Hash::make('whsec_'.Str::random(40)), 'secret_prefix' => 'whsec_'.Str::lower(Str::random(4)), 'events' => ['deal.created', 'deal.status_changed'], 'is_active' => true, ]; } }