芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/vendor/brian2694/laravel-toastr/README.md
Inspired in whossun/laravel-toastr.. I cloned the repository brian2694/laravel-toastr to update to Laravel 5.5 # laravel-toastr | Laravel Version | Is Working? | | --- | --- | | 8.x | Yes | | 7.x | Yes | | 6.x | Yes | | >= 5.5 | Yes | | <= 5.4 | Yes | ### install Using Composer composer require brian2694/laravel-toastr ### Laravel >= 5.5 That's it! The package is auto-discovered on 5.5 and up! ### Laravel <= 5.4 Add the service provider to `config/app.php` ```php Brian2694\Toastr\ToastrServiceProvider::class, ``` Optionally include the Facade in config/app.php if you'd like. ```php 'Toastr' => Brian2694\Toastr\Facades\Toastr::class, ``` ### 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 jQuery [toast](https://github.com/CodeSeven/toastr), you need to add css and js to your html. ### Basic * Toastr::info('message', 'title', ['options']); * Toastr::success('message', 'title', ['options']); * Toastr::warning('message', 'title', ['options']); * Toastr::error('message', 'title', ['options']); * Toastr::clear(); * Toastr()->info('message', 'title', ['options']); ```php "toast-top-center"]); return view('welcome'); }); ``` Then You should add `{!! Toastr::message() !!}` to your html. ```html
Laravel
Laravel 5
{!! Toastr::message() !!} ``` ### MIT