OutboundWhitelist Model
The OutboundWhitelist model represents allowed destination patterns for outbound dialing restrictions.
Overview
| Property | Value |
|---|---|
| Namespace | App\Models |
| Table | outbound_whitelists |
| Primary Key | id |
| Global Scope | OrganizationScope |
Database Schema
| Column | Type | Nullable | Description |
|---|---|---|---|
id | bigint unsigned | No | Primary key |
organization_id | bigint unsigned | No | Organization ID |
name | varchar(255) | No | Rule name |
pattern | varchar(255) | No | Regex pattern |
description | text | Yes | Description |
priority | int | No | Rule priority |
status | varchar(50) | No | active/inactive |
created_at | timestamp | No | Creation timestamp |
updated_at | timestamp | No | Update timestamp |
Relationships
Belongs To
organization()→ Organization
Methods
isActive(): boolmatches(string $number): bool
Pattern Examples
| Pattern | Description |
|---|---|
^\+1[0-9]{10}$ | US numbers only |
^\+972 | Israel numbers |
| `^(+1 | +44)` |