Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Toasts Livewire

Toasts Livewire Laravel Package

pleshkovpa/toasts-livewire

Toast notifications for Laravel Livewire apps: dispatch lightweight success, error, and info messages that render inside your Livewire components with minimal setup. Adds simple, customizable flash-style feedback for form submissions, actions, and other in-app events.

View on GitHub
Deep Wiki
Context7

pleshkovpa/toasts-livewire is a lightweight toast notification package for Laravel Livewire applications. It lets you dispatch flash-style alerts directly from Livewire components and render them as dismissible, auto-hiding toasts without writing JavaScript or adding a heavy frontend dependency.

  • Livewire-native dispatch via simple $this->toast() calls
  • Auto-dismiss and stacking with configurable timeouts
  • Multiple types: success, error, warning, info
  • Blade component for drop-in rendering in any layout
  • Customizable styling and positioning via config
Frequently asked questions about Toasts Livewire
How do I install pleshkovpa/toasts-livewire in a Laravel application?
Install it with Composer using composer require pleshkovpa/toasts-livewire. Laravel package auto-discovery should register the service provider, so no manual provider entry is normally needed. After that, include the toast rendering component in your layout as described in the README. Check whether the package publishes views or assets before styling it.
Does pleshkovpa/toasts-livewire require Bootstrap, or can I use it with Tailwind?
The package is described as Bootstrap toasts for Laravel Livewire, so it expects Bootstrap's CSS and JavaScript toast markup and behavior. If your app uses Tailwind, you will likely need to override or replace the toast view to match your design system. Confirm the rendering approach in the README before committing to it.
Which Laravel and Livewire versions does pleshkovpa/toasts-livewire support?
That must be verified against the package's composer.json, specifically its illuminate/support and livewire constraints. The 1.0 release establishes a stable API but does not by itself guarantee support for every Laravel or Livewire major. Check the declared constraints before adding it to an existing application.
How do I dispatch success, error, info, and warning toasts from a Livewire component?
The package provides helpers for dispatching success, error, info, and warning toasts directly from Livewire components. You call the toast method or event from your component action and the rendered toast component picks it up. Exact syntax depends on the package's API, so follow the README examples for your installed version.
Can I customize the appearance of the toasts?
Because the package targets Bootstrap toasts with minimal setup, customization usually means publishing or overriding its view and using Bootstrap utility classes. Confirm whether views, config, or assets are publishable in the README. If not, you can wrap or replace the rendered component with your own markup.
Is pleshkovpa/toasts-livewire stable enough for production use?
The package has reached a 1.0 release and declares its public API stable, which is a positive signal for a production dependency. Before adopting it, review the changelog, test coverage, open issues, and release cadence, since a 1.0 tag alone does not prove maintenance commitment. Constrain to ^1.0 so patch and minor updates remain compatible.
How do I upgrade pleshkovpa/toasts-livewire from 0.x to 1.0?
Treat the move from a 0.x constraint to ^1.0 as a deliberate migration rather than a routine update. Read the changelog and any upgrade guide to see whether breaking changes were bundled into 1.0. If you already use a 0.x version, test the upgrade on a branch with a rollback path before changing composer.json.
Do I need to publish configuration or assets for this toast package?
The package is designed for minimal setup, but you should check the README for any publishable config, views, or assets. If publishing is supported, use the vendor:publish command for the relevant tag. If not, configuration is likely handled through component attributes or package defaults.
How can I test toast notifications in a Livewire component?
Use Livewire's testing helpers to call the component action and assert the expected toast event or rendered output. If the package dispatches a browser event, assert it with the appropriate Livewire event assertion. You can also assert that the toast text appears in the rendered component after the action.
What are alternatives to pleshkovpa/toasts-livewire for Laravel Livewire notifications?
Alternatives include WireUI notifications, Tall Toasts, Filament notifications if you use Filament, or a small custom Livewire event and Blade component. Choose based on whether you want Bootstrap-specific markup, Tailwind styling, or framework-agnostic dispatch. Compare maintenance activity and Laravel version support before switching.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager