php-flasher/flasher-toastr
Laravel adapter for Toastr notifications using PHP Flasher. Quickly flash success/error/info messages to the session and render them as Toastr popups in your views, with configurable options and seamless integration with flasherphp/flasher.
Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript support.
composer require php-flasher/flasher-toastr
// Basic usage
toastr('Operation completed successfully!', 'success');
toastr('An error occurred.', 'error');
toastr('Information message.', 'info');
toastr('Warning message.', 'warning');
// With options
toastr('Success message', 'success', [
'timeOut' => 5000,
'positionClass' => 'toast-top-right',
'progressBar' => true,
]);
// Custom notification
toastr('Custom message', 'custom-type');
success(), error(), info(), warning(), flash()timeOut, positionClass, progressBar, closeButton, newestOnToptoastr() helper for quick accessComplete documentation: php-flasher.io
How can I help you explore Laravel packages today?