rawilk / laravel-settings

Store Laravel application settings in the database.
https://randallwilk.dev/docs/laravel-settings
MIT License
199 stars 17 forks source link

Dispatch Events #33

Closed rawilk closed 1 year ago

rawilk commented 1 year ago

This PR adds three events that will be dispatched:

SettingsFlushed

Event is dispatched when the flush method is called on the settings service. The event receives the following arguments:

SettingWasDeleted

Event is dispatched when a setting is deleted. The event receives the following arguments:

SettingWasStored

Event is dispatched when a setting is deleted. The event receives the following arguments:

Note: When caching is enabled, the event will only fire if the value has changed for an already persisted setting.