You can install the package via composer:
composer require jecharlt/livewire-bootstrap-toaster
Configurations for the animation and style of the toast notifications can be configured directly within the toast view
You can publish the toast view with:
php artisan vendor:publish --tag="livewire-bootstrap-toaster-views"
- Include the following in your layout view
<x-livewire-bootstrap-toaster::toast/>
- To trigger a toast notification, use the following command in your Livewire component
- Note:
- Both the message and title are user-defined and optional
- Type supported types include: success, error, info, warning
- Note:
$this->toast("message", "title", "type")
If you discover any security related issues, please reach out to me directly at 53029902b@gmail.com
The MIT License (MIT). Please see License File for more information.