jecharlt / livewire-bootstrap-toaster
Toast Notifications for Laravel Livewire, AlpineJS, and Bootstrap
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- laravel/framework: ^10.10
- livewire/livewire: ^3.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
Installation
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"
Usage
- 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")
Security Vulnerabilities
If you discover any security related issues, please reach out to me directly at 53029902b@gmail.com
Credits
License
The MIT License (MIT). Please see License File for more information.