Laravel: ada pesan sesi saat klik tombol browser kembali

// 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