jecharlt/livewire-bootstrap-toaster

Toast Notifications for Laravel Livewire, AlpineJS, and Bootstrap

1.1 2023-12-31 09:21 UTC

This package is auto-updated.

Last update: 2024-09-22 07:28:16 UTC


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

  1. Include the following in your layout view
<x-livewire-bootstrap-toaster::toast/> 
  1. 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
$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.