Laravel 5 flash message flashes again after navigating away and using back button

前端 未结 6 1593
无人共我
无人共我 2020-12-19 05:13

In my controller im trying to redirect back with a Flash message in laravel 5. This all works great. The problem is no matter how i set it up the flash message always re-app

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-19 05:48

    Generally, when the user clicks the back button in the browser, the browser tries to display the contents of the previous page without reloading it. So it's likely not Laravel flashing to the session again, but the browser trying to help you out by caching the page for you.

提交回复
热议问题