22/09
2017
Easy Flash Messages for Your Laravel App
This package offers a flash messaging setup for your Laravel applications., (*1)
composer require equipc/flash
Flash->message(āMessageā, āinfo);
Flash->info(āMessageā);
flash(āMessageā);
flash(āMessageā, āerrorā);
This package doesnāt provide any way to display the flash message. It only provides helpers to store the message to the session., (*2)
To retrieve the message and the level, simply use the laravel session helper:, (*3)
// Message session(āflash.messageā); // Level session(āflash.levelā);