Laravel: le message de session existe en cliquant sur le bouton Retour du navigateur

// Add the following code to your view (blade)
// It will set headers to NOT cache a page
<?php
  header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  header("Cache-Control: post-check=0, pre-check=0", false);
  header("Pragma: no-cache");
?>
Make Your Own Project