studio1902/statamic-peak-browser-appearance
A Statamic Peak addon that lets you customize browser appearance settings, like theme colors and favicons, so your site looks polished in tabs and on mobile devices. Simple to configure and built to fit seamlessly into the Peak workflow.
composer require robdekort/<package-name><package-name> with the actual package handle from the release.php artisan vendor:publish --tag=<package-config>GlobalVariablesSaved event. That's the first place to look when integrating custom logic.GlobalVariablesSaved. This means any package-level side effects (cache clearing, syncing, etc.) happen after the save completes.GlobalVariablesSaved in your EventServiceProvider or use the package's extension points. Example:
Event::listen(GlobalVariablesSaved::class, function ($event) {
Cache::forget('global-variables');
});
GlobalVariablesSaved to clear those caches. This is the idiomatic Statamic v6 event for that lifecycle hook.Event::fake([GlobalVariablesSaved::class]) in tests and assert the event is dispatched when saving globals. This verifies your integration without hitting the database.composer.json constraints and run composer update in a branch before merging.GlobalVariablesSaved. If you previously listened to a different event (e.g., GlobalSetSaved or a custom event), update your listeners. The new event fires after the save, so pre-save logic must use a different hook.GlobalVariablesSaved internally, avoid registering duplicate listeners that perform the same cache clearing or syncing.php artisan cache:clear, php artisan config:clear, and php artisan view:clear after upgrading to v4 to avoid stale configuration or compiled views.GlobalVariablesSaved). Direct database updates will bypass the event and any package behavior tied to it.How can I help you explore Laravel packages today?