Added
Notifier::extend('telegram', TelegramDriver::class, 'Telegram')registers a channel driver from a class, a closure or an instance. Custom types appear in the channel form, the filters and the table. Registering a built-in type replaces its driver.- A
cancelledstatus,Notifier::cancelScheduled($user, ?$eventKey),Notification::cancel(), and Cancel / Cancel pending actions in Filament.Notifier::fake()supportscancelScheduled()andassertCancelled(). ReportsFailureReasonand theRecordsFailureReasontrait. Built-in drivers now record why a send failed ("The recipient has no phone number.", "Slack returned HTTP 404. channel_not_found") instead of "Driver failed to send notification".php artisan notifier:prune --days=deletes old notification records, keeping anything pending or sending.notifier.prune.after_dayssets the default.- Admin settings are cached (
notifier.cache.settings_ttl, 300 seconds by default) and forgotten when saved.
Fixed
- Custom channel drivers never delivered.
registerChannel()stored the driver, but the queue job only knew the built-in types and failed with "No driver found for channel". - Events and templates switched off in the admin still sent.
- Scheduled, deferred and retried notifications ignored unsubscribes, preference changes and channels switched off after they were queued. They are now checked at delivery and cancelled instead.
- Scheduled notifications reserved a rate-limit slot when scheduled and skipped the limit when sent. In
dropmode, scheduling more than the limit dropped the extras. - Deferred and scheduled jobs that waited on the rate limit could expire before their first run when delayed by more than a day.
- Every request and artisan command ran a schema check and a channels query to register channels that nothing read.
notifier:cleanup-analyticsupdated one row per query.phpunit.xmlused the deprecated<coverage>schema.
Changed
- Queuing a single-channel send runs 6 queries instead of 13. The delivery job runs 9 instead of 7 because of the new delivery-time checks.