Skip to content

Notification Notificators ​

Retrieve a list of available notificator types.

php
use ThingsTelemetry\Traccar\Facades\Notification;

$notificators = Notification::notificators();

Parameters ​

ParameterTypeDescription
announcementboolOptional. Filter notificators suitable for announcements (excludes web/sms).

Usage ​

Get all notificators ​

php
$notificators = Notification::notificators();

Get announcement-only notificators ​

php
$notificators = Notification::notificators(announcement: true);

Response ​

Returns a Collection of NotificationTypeData objects.

php
foreach ($notificators as $notificator) {
    echo $notificator->type; // e.g., "mail", "sms", "telegram"
}

Released under the MIT License.