| Package Data | |
|---|---|
| Maintainer Username: | oyzmer |
| Maintainer Contact: | o.yyyy@qq.com (oyzm) |
| Package Create Date: | 2016-08-28 |
| Package Last Update: | 2016-08-28 |
| Language: | PHP |
| License: | Unknown |
| Last Refreshed: | 2025-12-12 03:01:54 |
| Package Statistics | |
|---|---|
| Total Downloads: | 6 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
toastr for laravel laravel5.*
#Installation
Run :
composer require ryan/toastr-for-laravel
Add providers in config/app.php
Oyzm\Toastr\ToastrServiceProvider::class
Add aliases in config/app.php
'Toastr' => Oyzm\Toastr\Facades\Toastr::class
Run:
php artisan vendor:publish
#Usage
Just add this code to your blade template file:
{!! Toastr::render() !!}
Use these methods in controllers:
Toastr::warning($message, $title = null, $options = []) ;
Toastr::error($message, $title = null, $options = []) ;
Toastr::info($message, $title = null, $options = []);
Toastr::success($message, $title = null, $options = []);
Toastr::clear() ;