arvin/toastr-for-laravel is a Laravel package for toastr.js for laravel5.
It currently has 0 GitHub stars and 27 downloads on Packagist (latest version 1.0).
Install it with composer require arvin/toastr-for-laravel.
Discover more Laravel packages by arvin
or browse all Laravel packages to compare alternatives.
Last updated
README
composer require arvin/toastr-for-laravelArvin\Toastr\ToastrServiceProvider::class, to providers in config/app.php'Toastr' => Arvin\Toastr\Facades\Toastr::class, to aliases in config/app.phpphp artisan vendor:publishJust 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()
set the toaster options in config/toastr.php , available options => toastr.js demo