Download the PHP package ryan/toastr-for-laravel without Composer
On this page you can find all versions of the php package ryan/toastr-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package toastr-for-laravel
toastr.js for Laravel 5.* (laravel5.4 以下适用,5.5+后没有维护了)
Installation
-
Run
composer require ryan/toastr-for-laravel
- Add
Yuansir\Toastr\ToastrServiceProvider::class,
to providers in config/app.php - Add
'Toastr' => Yuansir\Toastr\Facades\Toastr::class,
to aliases in config/app.php - Run
php artisan vendor:publish
Usage
Just add this code to your blade template file:
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()
Config
set the toaster options in config/toastr.php , available options => toastr.js demo
All versions of toastr-for-laravel with dependencies
PHP Build Version
Package Version
No informations.
The package ryan/toastr-for-laravel contains the following files
Loading the files please wait ....