title: How to declare timestamp only once in php or laravel?
body: <p>I'm working on passing a timestamp to a page. Basically What I'm doing is get the current time in my controller and then passing it to the view. But the problem I have is that after the time stamp is render in the view and if I refresh the page I get different time. So is there anyway to just show a timestamp only ONCE and not let change by loading the page?? Thanks in advance:</p>
  
  <p>Here's my code:</p>
  
  <p><strong>HomeController.php</strong></p>
  
  <pre><code>public function orderingSubmissionReceipt()
  {
      date_default_timezone_set('MST7MDT');
      $currentDateTime = date("F j, Y H:i:s");
  
      return view('order-summary', [
          'currentDateTime' =&gt; $currentDateTime
      ]);
   }
  </code></pre>
  
  <p><strong>order-summary.blade.php</strong> </p>
  
  <pre><code>&lt;div style="text-align: center;"&gt;&lt;?php echo $currentDateTime ?&gt;&lt;/div&gt;
  </code></pre>