yoeunes/toastr
Laravel toast notifications powered by toastr.js via PHPFlasher. Install with Composer and publish assets, then trigger info/success/warning/error messages using the flash()/toastr() helper in controllers for quick user feedback.
composer require yoeunes/toastr.php artisan flasher:install. This installs the necessary JavaScript/CSS (via PHPFlasher’s flasher-toastr-laravel integration) into your public/ directory.toastr()->success('...'), error(), warning(), or info() before a redirect or response.resources/views/layouts/app.blade.php) includes {{ flasher()->render() }} after </html> or before closing </body> — this renders the toasts and scripts.toastr() (or flash()->toastr(), both work) right before redirects. Ideal for CRUD operations: success after create/update, errors on failure.toastr()->success('Saved')->warning('Retry count reset')), though avoid overuse per request.flasher()->addOptions(['positionClass' => 'toast-bottom-right']) or config via config/flasher.php (published during flasher:install). The config mirrors PHPFlasher options, including global settings like timeout, closeButton, progressBar.toastr() in event methods) and Filament actions/resources out of the box.flasher()->getMessages() to assert toast presence/absence after a request.positionClass is 'toast-top-right'. Change globally in config/flasher.php or use toastr()->position('toast-bottom-left') per-message.{{ flasher()->render() }} is placed before </html>, JS/CSS may load after the DOM, causing timing issues. Move it inside <body>, just before </body>, for reliable toast display.toastr.js manually — it’s bundled automatically. Avoid mixing with direct toastr CDN scripts to prevent conflicts.flasher.js and flasher.css are served (check DevTools Network tab after redirect).toastr JavaScript is loaded (global toastr object should exist in console).session('flash_messages') isn’t cleared too early (e.g., by middleware redirects before response).flasher()->template('my-template') for custom toast markup (if needed via PHPFlasher extension).How can I help you explore Laravel packages today?