Laravel 5 - Implement Flash Messages with example not working

154 views Asked by At

I'm following this post here http://itsolutionstuff.com/post/laravel-5-implement-flash-messages-with-exampleexample.html, and in Step 3: use flash messages with redirect I've changed it so it calls the following method in my HomeController.php file:

public function index(Request $request) {
        return view("home")->with("info", "Please note that although Transport for South Africa is updated regularly, the site is still in BETA, and I'm hoping to have it complete by the 1st January 2018.");
}
1

There are 1 answers

3
Elon Than On BEST ANSWER

As you can see in examples, you have to perform redirect to use flash messages (eg. with back() or redirect() helpers).

They are visible on the next request, not current one.