All notable changes will be documented in this file.
Added Feature: Per notification duration. Please look at the readme for examples of adding duration and sticky behavior (toast won't disappear except if clicked).
- Support for Laravel 10
- Minor fix for dark styled toast on mouse hover
Minor UI tweak to force toasts above tailwind's z-50 (toasts should always be above any UI as they offer temporary yet usually crucial information to the user that should not be hidden by other elements)
- Added support for RTL
- Minor UI tweak for dark mode.
Added support for Laravel v9.x
- [FEATURE] debug method added which will also print the result in the console (silent in a production environment)
// JS
Toast.debug('I will NOT show in production! Locally, I will also log in console...', 'A Debug Message');
// PHP
toast()
->debug('I will NOT show in production! Locally, I will also log in console...', 'A Debug Message')
->push();
// debug also accepts objects as message
toast()
->debug(User::factory()->createOne()->only(['name', 'email']), 'A User Dump')
->push();
- [FIX] Avoid showing 'undefined' as toast title/message in rare situations.
- [FEATURE] Sanitization of the toast title and message is now optional, and enabled by default.
// PHP
toast()
->danger('I will go…<br><i>to the next line 💪</i>', 'I am <span style="color:red;">HOT</span>')
->doNotSanitize()
->push();
IF you have previously published the vendor views, you should re-publish them, or just change x-text
to x-html
inside includes\content.blade.php
See the documentation's Text Sanitization, and review the security best practices.
- [FIX] Fixed container view which was not allowing click-through between and around toasts.
- [FIX] Fixed a rare race condition between frontend and backend which caused infinite loop of livewire requests
- [FEATURE] Ability to delay toasts with pushOnNextPage()
- [FEATURE] Make session keys configurable
- [FIX] Issue with dispatchBrowserEvent if called in same livewire request with a toast notification
- Initial public release