title: What is the best practice to create a custom helper function in php Laravel 5?
body: <h1>I have</h1>
  <p>the default <strong>created_at</strong> date keep printing out as an MySQL format : 2015-06-12 09:01:26. I wanted to print it as my own way like <code>12/2/2017</code>, and other formats in the future.</p>
  <hr />
  <h1>I created</h1>
  <p>a file called <code>DataHelper.php</code> and store it at <code>/app/Helpers/DateHelper.php</code> - and it looks like this</p>
  <pre><code>&lt;?php
  
  namespace App\Helpers;
  
  class DateHelper {
  
      public static function dateFormat1($date) {
          if ($date) {
              $dt = new DateTime($date);
  
          return $dt-&gt;format(&quot;m/d/y&quot;); // 10/27/2014
        }
     }
  }
  </code></pre>
  <hr />
  <h1>I want</h1>
  <p>to be able to called it in my blade view like</p>
  <pre><code>DateHelper::dateFormat1($user-&gt;created_at)
  </code></pre>
  <p>I'm not sure what to do next.</p>
  <p><strong>What is the best practice to create a custom helper function in php Laravel 5?</strong></p>