nawasara/toaster
Larablocks Analysis
nawasara/toaster works with Laravel 10 and 12 (latest release v0.1.2, Oct 15, 2026).
Recommendation checks
Use with careUse with care: meets 1 of 4 checks.
- Latest release doesn't support Laravel 13, the current version
- Released in the last 12 months (Oct 15, 2026)
- 49 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Actively maintained- Last stable release: Oct 15, 2026.
- 3 releases in the last 12 months.
- First released: Apr 28, 2026.
- Monthly downloads: 49, down 27% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require nawasara/toaster |
|
| Latest Version: | v0.1.2 |
| PHP: | ^8.1 |
| Laravel: | 10 · 12 |
| License: | MIT |
| Last Updated: | Oct 15, 2026 |
| Links: | GitHub · Packagist |
Nawasara Toaster
Lightweight, Alpine-based toast notification component for Laravel and Livewire applications. Drop one component into your layout and trigger toasts from JavaScript, Livewire, or session flash.
Features
- Four toast types: success, error, warning, info
- Configurable position: nine corner/edge anchors
- Optional progress bar countdown indicator
- Dark-mode aware: respects the host application's theme
- Mobile responsive
- Triggers from anywhere: JavaScript (
window.Toast), Livewire dispatch, or Laravel session flash - Auto-init from flash: shows the toast on the next page load when you redirect with a flash payload
Installation
composer require nawasara/toaster
Auto-discovered. Drop the toaster + script components into your layout:
<x-nawasara-toaster::script />
{{-- … your content … --}}
<x-nawasara-toaster::toaster position="top-right" :duration="5000" />
Usage
From JavaScript
window.Toast.success('Saved successfully');
window.Toast.error('Something went wrong');
window.Toast.warning('Heads up');
window.Toast.info('FYI');
From Laravel session flash
session()->flash('toast', [
'type' => 'success',
'message' => 'Saved successfully',
]);
return redirect()->back();
The toaster auto-loads the flash payload via window.Laravel.toast on the next page render.
From Livewire
Use the HasToaster trait if you prefer session-flash style (works after a redirect):
use Livewire\Component;
use Nawasara\Toaster\Concerns\HasToaster;
class MyComponent extends Component
{
use HasToaster;
public function save()
{
// …
$this->alert('success', 'Saved successfully');
}
}
For real-time toasts inside the same Livewire request (no page reload), use Nawasara\Ui\Livewire\Concerns\HasBrowserToast from nawasara/ui. It dispatches a browser toast event that the toaster listens to.
Author
Pringgo J. Saputro <odyinggo@gmail.com>
License
MIT
Alternatives to nawasara/toaster
Complete Flowbite component library for Laravel with Blade components, Tailwind...
Vibrant Depth UI component library for Laravel + Livewire + Alpine.js + Tailwind...
Livewire-native Bootstrap 5.3 UI: one artisan command sets up Bootstrap, Vite an...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.1.2 | ^8.1 | ^10.0| | MIT | |
| v0.1.1 | ^8.1 | ^10.0| | MIT | |
| v0.1.0 | ^8.1 | ^10.0| | MIT |