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

ActiveLibrary

kessam/toastr
=============

toastr.js flush notifications for Laravel

V1.2(2y ago)08MITPHPPHP &gt;=5.3

Since Mar 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/KamalEssam/Toastr)[ Packagist](https://packagist.org/packages/kessam/toastr)[ Docs](https://github.com/KamalEssam/toastr)[ RSS](/packages/kessam-toastr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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/718dc209be839369252163c157cd5292008ad65197f8520bae1d92c8548e82ae/68747470733a2f2f706f7365722e707567782e6f72672f4b657373616d2f746f617374722f762f737461626c65)](https://packagist.org/packages/Kessam/toastr) [![Latest Unstable Version](https://camo.githubusercontent.com/2ed1c8fcd96942d9093784105241db91b38dfcea6f8a0c87350a737726e319fb/68747470733a2f2f706f7365722e707567782e6f72672f4b657373616d2f746f617374722f762f756e737461626c65)](https://packagist.org/packages/Kessam/toastr) [![Total Downloads](https://camo.githubusercontent.com/165c69b42d17d19cfd802b1f36e174ce214f9d15e1196239073c0f3785b80262/68747470733a2f2f706f7365722e707567782e6f72672f4b657373616d2f746f617374722f646f776e6c6f616473)](https://packagist.org/packages/Kessam/toastr) [![License](https://camo.githubusercontent.com/099b4eff7a2aec1c36f13eabbefaf7f878b4cbd6ce1f7fe4b0c5a43485fb7ec6/68747470733a2f2f706f7365722e707567782e6f72672f4b657373616d2f746f617374722f6c6963656e7365)](https://packagist.org/packages/Kessam/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)

Install
-------

[](#install)

You can install the package using composer

```
composer require Kessam/toastr
```

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 an error toast with no title
toastr()->error('Oops! Something went wrong!');
```

As an example:

```
