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

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

philipealmeida/laravel-toastr
=============================

toastr.js for laravel 5.2

1.0.1(9y ago)0124MITPHPPHP &gt;=5.5.0

Since Jul 10Pushed 9y agoCompare

[ Source](https://github.com/philipealmeida/laravel-toastr)[ Packagist](https://packagist.org/packages/philipealmeida/laravel-toastr)[ Docs](https://github.com/whossun/laravel-toastr)[ RSS](/packages/philipealmeida-laravel-toastr/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

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

[](#laravel-toastr)

### install

[](#install)

Using Composer

```
composer require whossun/laravel-toastr

```

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

```
Whossun\Toastr\ToastrServiceProvider::class,
```

Optionally include the Facade in config/app.php if you'd like.

```
'Toastr'  => Whossun\Toastr\Facades\Toastr::class,
```

### Options

[](#options)

You can set custom options for Reminder. Run:

```
php artisan vendor:publish

```

to publish the config file for toastr.

You can see [toastr's documentation](http://codeseven.github.io/toastr/demo.html) to custom your need.

> You can use toastr() function available.

### Dependencies

[](#dependencies)

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

### Basic

[](#basic)

- Toastr::info('message', 'title', \['options'\]);
- Toastr::success('message', 'title', \['options'\]);
- Toastr::warning('message', 'title', \['options'\]);
- Toastr::error('message', 'title', \['options'\]);
- Toastr::clear();
- Toastr()-&gt;info('message', 'title', \['options'\]);

```
