title: How can I use config() function in the index.php file?
body: <p>I use Laravel framework. I need to use <code>config()</code> function in the <code>index.php</code> file (which exists in the <em>public</em> folder). But when I call it, it throws this error:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function config() in C:\xampp\htdocs\myproject\public\index.php on line 2</p>
  </blockquote>
  
  <p>How can I fix it?</p>