Work with Laravel flash messages easily by using Laraflash
Laraflash is a good package which provides a handy way to work with the flash messages.
You can install this package via composer using this command:
composer require coderello/laraflash
Adding the messages
laraflash() ->add() ->content('You have been registered successfully.') ->type('success') ->important();
Getting ready messages as an array
This post is submitted by one of our members. You may submit a new post here.