Flash Messages in Laravel 5

This lesson covered some basic steps in displaying different flash message styles in your Laravel apps.
First Step: Creating Flash Message in the Controller
\Session::flash(“name_of_your_flash”, “message_to_display”) is a method used by Laravel to store your message. Add this inside any function in your Controller, where you want to display a Flash. Make sure you place your session after the save/create method.

The official docs can be found here.

Prev1 / 6

George Dan Gil

Programmer, Database Designer and Administrator for Web Applications. Who loves to read and write interesting topics.You can email me at neverender24@gmail.com