TALL Toasts is a toast notification library for the Laravel TALL stack (Tailwind, Alpine.js, Laravel, Livewire). What makes this package stand out to me is the ability to render customizable toast messages from either the backend or frontend. The TALL Toasts package also has a negligible footprint on the published CSS/JS.
Here’s the frontend API for triggering a toast message:
// Frontend
Toast.info(
'Notification from the frontend...',
'The Title'
);
Toast.success('A toast without a title also works');
Toast.warning('Watch out!');
Toast.danger('I warned you!', 'Yikes');
And the same toast messages using PHP on the backend:
// backend
toast()
->info('Notification from the backend...', 'The Title')
->push();
toast()
->success('A toast without a title also works')
->push();
toast()
->warning('Watch out!')
->push();
toast()
->danger('I warned you!', 'Yikes')
->push();
In addition to this API, you have complete control over the look and feel of the messages by overriding the package’s blade view with Tailwind classes:
You can learn more about this package, get full installation instructions, and view the source code on GitHub.