windsondias/livewire-toasts

A Livewire package to create toast notifications

Installs: 1 640

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Language:Blade

v0.1.1 2023-11-19 20:32 UTC

This package is auto-updated.

Last update: 2025-06-20 00:16:43 UTC


README

To use this package, you must have TailwindCss and AlpineJs installed in the project.

The icon library used in the package is remixicon.com

Installation

Use the composer command:

composer require windsondias/livewire-toasts

It is also necessary to add the relative path to the package folder in tailwind.config.js within the content key, starting from the vendor folder:

content: [
    "./resources/**/*.blade.php",
    "./resources/**/*.js",
    "./vendor/windsondias/livewire-toasts/resources/**/*.blade.php",
],

Add the component to your layout

<body>

@persist('toast')
    <x-toasts::render/>
@endpersist
</body>

To use, simply call from a livewire component:

$this->success('Message');

$this->error('Message');

$this->information('Message');

$this->warning('Message');

To change the toast layout, simply publish the package

php artisan vendor:publish --tag=livewire-toasts