github devrabiul/laravel-toaster-magic v1.3
๐Ÿž Laravel Toaster Magic v1.3.0 โ€” Color Mode & SPA Navigation Fixes

latest release: v1.4
one month ago

๐Ÿž 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.
  • ๐Ÿ› ๏ธ 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:

  1. Update the package:
composer update devrabiul/laravel-toaster-magic
  1. (Optional) Clear config cache:
php artisan config:clear
  1. 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! ๐Ÿžโœจ

Don't miss a new laravel-toaster-magic release

NewReleases is sending notifications on new releases.