Toast Notifications for the TALL Stack
Published on by Paul Redmond
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 negligable footprint on the published CSS/JS.
Here's the frontend API for triggering a toast message:
// FrontendToast.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:
// backendtoast() ->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.
This package was submitted to our Laravel News Links section. Links is a place the community can post packages and tutorials around the Laravel ecosystem. Follow along on Twitter @LaravelLinks