PHPackages                             gw1nblayd/livewire-gtoaster - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gw1nblayd/livewire-gtoaster

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gw1nblayd/livewire-gtoaster
===========================

Toasters for your Laravel Livewire applications

1.0.0(1y ago)230MITJavaScriptPHP ^8.1|^8.2|^8.3

Since Jul 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gw1nblayd/livewire-gtoaster)[ Packagist](https://packagist.org/packages/gw1nblayd/livewire-gtoaster)[ RSS](/packages/gw1nblayd-livewire-gtoaster/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/6cb3db740f5f9922bdcee3260cbde1db591ec824e5ab68548ec81fd7e40e4691/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c69766577697265253230472d546f61737465722e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6777316e626c6179642532466c697665776972652d67746f6173746572267061747465726e3d617263686974656374267374796c653d7374796c655f32266465736372697074696f6e3d546f6173746572732b666f722b796f75722b4c61726176656c2b4c697665776972652b6170706c69636174696f6e73266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313530707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://github.com/gw1nblayd/livewire-gtoaster)

Livewire G-Toaster
==================

[](#livewire-g-toaster)

Minimalistic toasters for your laravel livewire application

Version Compatibility
---------------------

[](#version-compatibility)

PHPLaravelLivewireG-Toaster8.1, 8.2, 8.310.x, 11.x3.0, dev-main0.1.0Installation
------------

[](#installation)

### Step 1:

[](#step-1)

```
composer require gw1nblayd/livewire-gtoaster
```

### Step 2:

[](#step-2)

#### Go to `resources/js/app.js` and add the following lines:

[](#go-to-resourcesjsappjs-and-add-the-following-lines)

```
import GToaster from '../../vendor/gw1nblayd/livewire-gtoaster/src/resource/js/GToaster.js';

// All parameters are optional
GToaster.setParams({
  // Can be 'top-right', 'top-left', 'bottom-right', 'bottom-left'
  position: 'bottom-right',

  // Time in milliseconds
  timer: 3000,

  // Can be 'none', 'fade'
  animation: 'none',

  // Can be 'flat', 'blank'
  style: 'flat',

  // Can be 'dark', 'light'
  theme: 'dark',

  // Show icons in toasts
  showIcons: true,
});
```

### Step 3:

[](#step-3)

#### Add `@gtoast` directive to your main layout file.

[](#add-gtoast-directive-to-your-main-layout-file)

Example: `resources/views/layouts/app.blade.php`

```

  G-Toaster

@gtoast

```

How to use ?
------------

[](#how-to-use-)

### In your livewire component

[](#in-your-livewire-component)

```
