title: After upgrading Laravel from 5.6 to 6.0, Call to undefined str_random() function not working
body: <p>I have upgraded Laravel from 5.6 to 6.0. Previously, default helper functions were running fine on the controllers, but now it says "<strong>undefined</strong>." In my controller, I have used the following.</p>
  
  <pre class="lang-php prettyprint-override"><code>$filename = str_random(12);
  </code></pre>
  
  <p>I am getting the following error.</p>
  
  <blockquote>
    <p>message: "Call to undefined function
    App\Http\Controllers\str_random()"</p>
  </blockquote>
  
  <p>I have also used the <code>random()</code> function, and it's saying the same thing.</p>
  
  <p>Can somebody please guide me on what to do?.</p>
  
  <p>I have run commands like:</p>
  
  <pre><code>composer dump-autoload
  </code></pre>
  
  <p>But I get the same error.</p>