Skip to content

Releases: TheSETJ/laravel-notification-foundation

v1.2.0

Choose a tag to compare

@TheSETJ TheSETJ released this 30 Jul 10:09

Four additions across the channel registry, SMS, and diagnostics.

  • Channel registry methods extracted into a dedicated RegistersChannels trait; via() and __call() remain in BaseNotification for discoverability
  • BaseNotification::flushChannelRegistry() resets the global channel registry — call it in setUp/tearDown to isolate tests
  • SmsMessage gains sender ID support via from() and getFrom(), giving drivers access to the from-number or sender ID without hardcoding it
  • FcmChannel and SmsChannel now throw a descriptive RuntimeException when no driver is bound, instead of a generic container resolution error

v1.1.1

Choose a tag to compare

@TheSETJ TheSETJ released this 30 Jul 09:30

Channel toggles now work for any registered name

registerChannel() was storing names as-is while useXChannel(), enableXChannel(), and disableXChannel() normalize to lowercase internally. A name like 'myChannel' caused a key mismatch that made instance-level toggles silently have no effect. Names are now normalized to lowercase on registration.

v1.1.0

Choose a tag to compare

@TheSETJ TheSETJ released this 25 Jul 15:24

FCM payload coercion moved into FcmMessage

setData() and mergeData() now coerce values to strings automatically, enabling the parent::toFcm()->mergeData([...]) extension pattern.

v1.0.0

Choose a tag to compare

@TheSETJ TheSETJ released this 22 Jul 18:01

Initial stable release.

  • Dynamic channel registry with fluent per-instance toggling
  • Shared data bag with zero-override defaults for database, FCM, and SMS
  • FCM and SMS channels backed by swappable driver contracts
  • FCM v1 HTTP message DTO with fluent builder
  • 61 unit tests