Download the PHP package masterro/laravel-flashes without Composer
On this page you can find all versions of the php package masterro/laravel-flashes. 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 laravel-flashes
Easy Flash Messages for Laravel
Fast flash message integration.
Installation
From the command line, run:
Usage
Somewhere set the flash message
flash("Hello, {$name}!");
flash("Hello, {$name}!", 'success');
flash()->error($message);
// ->success(), ->info(), ->warning(), ->error()
flash()->with(['body' => 'My custom body text']);
// ->success(), ->info(), ->warning(), ->error()
Flash::info('Flash!');
Before closing </body>
tag
@include('flash-messages::script')
or implement your own render logic
php artisan vendor:publish --tag=flash-messages-views
Implement notify method (bootstrap-notify example)
Package will trigger window.notify(message, type)
global javascript function that you should implement. As an example here is bootstrap-notify implementation:
It requires bootstrap
, bootstrap-notify
and animate.css
You can install and require those with yarn or npm:
yarn add bootstrap-notify
or npm i bootstrap-notify --save
All versions of laravel-flashes with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
illuminate/support Version ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/session Version ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/session Version ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
The package masterro/laravel-flashes contains the following files
Loading the files please wait ....