PHPackages                             yoeunes/toastr - 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. yoeunes/toastr

Abandoned → [php-flasher/flasher-toastr-laravel](/?search=php-flasher%2Fflasher-toastr-laravel)Library[Utility &amp; Helpers](/categories/utility)

yoeunes/toastr
==============

toastr.js flush notifications for Laravel

v3.3.0(4mo ago)4101.1M↓17.3%58[15 issues](https://github.com/yoeunes/toastr/issues)11MITPHP &gt;=8.2

Since Feb 8Pushed 4mo ago8 watchersCompare

[ Source](https://github.com/yoeunes/toastr)[ Packagist](https://packagist.org/packages/yoeunes/toastr)[ Docs](https://github.com/yoeunes/toastr)[ Fund](https://www.paypal.com/paypalme/yoeunes)[ GitHub Sponsors](https://github.com/yoeunes)[ RSS](/packages/yoeunes-toastr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (35)Used By (11)

Toastr.js notifications for Laravel
===================================

[](#toastrjs-notifications-for-laravel)

👀 This package helps you to add [toastr.js](https://github.com/CodeSeven/toastr) notifications to your Laravel projects.

 [![Latest Stable Version](https://camo.githubusercontent.com/41a6c933fe08867639dc2b60d770759866b1f80c8c750705ee3f79804345a415/68747470733a2f2f706f7365722e707567782e6f72672f796f65756e65732f746f617374722f762f737461626c65)](https://packagist.org/packages/yoeunes/toastr) [![Latest Unstable Version](https://camo.githubusercontent.com/e5d22613014e4e39d67249b89e0870dff1ffca4fa8b2376b8313a5c622f861ed/68747470733a2f2f706f7365722e707567782e6f72672f796f65756e65732f746f617374722f762f756e737461626c65)](https://packagist.org/packages/yoeunes/toastr) [![Total Downloads](https://camo.githubusercontent.com/ad33a3ca02e17eaad0d64b643f8f92fb014f3d4ad4f4afc9f96e0227b842cb26/68747470733a2f2f706f7365722e707567782e6f72672f796f65756e65732f746f617374722f646f776e6c6f616473)](https://packagist.org/packages/yoeunes/toastr) [![License](https://camo.githubusercontent.com/94ae88d51ac5cc7cc38073ee17908721810ad7124d60c79b3da592f43c6c2eea/68747470733a2f2f706f7365722e707567782e6f72672f796f65756e65732f746f617374722f6c6963656e7365)](https://packagist.org/packages/yoeunes/toastr)

[![toastr](https://user-images.githubusercontent.com/10859693/39634578-1a9f121a-4fb3-11e8-8863-d64fad42901b.png)](https://user-images.githubusercontent.com/10859693/39634578-1a9f121a-4fb3-11e8-8863-d64fad42901b.png)

Version 3 Update
----------------

[](#version-3-update)

With the release of version 3, `yoeunes/toastr` is now powered by [PHPFlasher](https://github.com/php-flasher/php-flasher). When you install this package, it automatically utilizes [PHPFlasher](https://packagist.org/packages/php-flasher/flasher-toastr-laravel) under the hood. For those who are already using [PHPFlasher](https://php-flasher.io/library/toastr/) or are interested in a more direct implementation, you might consider using [PHPFlasher](https://php-flasher.io/library/toastr/) directly as it offers the same API and additional features.

Install
-------

[](#install)

You can install the package using composer

```
composer require yoeunes/toastr
```

After installation, publish the assets using:

```
php artisan flasher:install
```

Usage:
------

[](#usage)

The usage of this package is very simple and straightforward. it only required one step to use it :

Use `toastr()` helper function inside your controller to set a toast notification for `info`, `success`, `warning` or `error`

```
// Display a success toast with no title
flash()->success('Operation completed successfully.');
```

As an example:

```
