laravel flash message

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

Sharing is caring!