๐ Laravel Toaster Magic v1.3.0 โ Color Mode & SPA Navigation Fixes
This release introduces a new Color Mode feature that automatically applies toast colors based on toast types, along with important fixes for SPA navigation issues to improve Livewire and frontend routing compatibility.
โ What's New / Fixed:
-
๐จ New Feature: Color Mode
- Enable
color_mode
in the config to automatically apply distinct colors for toast types (success
,error
,warning
,info
). - Provides visually clear, consistent toast feedback without manual color tweaks.
- Enable
-
๐ ๏ธ Fixed SPA Navigation Issues
- Resolved toast notifications not showing or duplicating during Single Page Application (SPA) navigations.
- Improved event handling and lifecycle hooks to better support Livewire v3 and modern SPA setups.
-
๐งน Other Improvements
- Enhanced option merging logic for runtime and config settings.
- Codebase cleanup and minor optimizations for stability.
โ Upgrade Guide:
- Update the package:
composer update devrabiul/laravel-toaster-magic
- (Optional) Clear config cache:
php artisan config:clear
- Enable color mode in your config file if you want to use it:
// config/laravel-toaster-magic.php
return [
'options' => [
// other options...
'color_mode' => true,
],
'livewire_enabled' => true,
'livewire_version' => 'v3',
];
โ Special Thanks
Thanks to all community members who helped identify SPA navigation issues and supported the color mode feature development! โค๏ธ
Happy Toasting! ๐โจ