PHPackages                             csl/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. [Queues &amp; Workers](/categories/queues)
4. /
5. csl/toastr

ActiveLibrary[Queues &amp; Workers](/categories/queues)

csl/toastr
==========

Support laravel5.\* toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

1.5(9y ago)075MITPHP

Since Apr 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/wl496928838/laravel-toastr)[ Packagist](https://packagist.org/packages/csl/toastr)[ RSS](/packages/csl-toastr/feed)WikiDiscussions master Synced 1mo ago

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

laravel-toastr
==============

[](#laravel-toastr)

Support laravel5.\*

toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

Installation
------------

[](#installation)

Using Composer

```
composer require csl/toastr

```

Add the service provider to `config/app.php`

```
Csl\Toastr\ToastrServiceProvider::class,
```

Add the Facade in `config/app.php`

```
'Toastr'  => Csl\Toastr\Toastr::class,
```

Usage
-----

[](#usage)

jQuery [toast](https://github.com/CodeSeven/toastr), you need to add css and js to your html.

```

{!! Toastr::message() !!}
```

```
Toastr::info('foo', 'bar');

Toastr::success('foo', 'bar');

Toastr::warning('foo', 'bar');

Toastr::error('foo', 'bar');
```

Example
=======

[](#example)

```
