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.
Installation
You can install this package via composer using this command:
composer require coderello/laraflash
Examples
Adding the messages
laraflash()
->add()
->content('You have been registered successfully.')
->type('success')
->important();
Getting ready messages as an array
laraflash()->toArray();
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5.3 Laravel 5 Packages Sources Beginner