title: Cannot access laravel project via url http://localhost/myproject/public/
body: <p>When I ran php artisan serve then copy this URL <a href="http://127.0.0.1:8000/" rel="nofollow noreferrer">http://127.0.0.1:8000/</a>. Its works. I want to access my project via url <a href="http://localhost/myproject/public/" rel="nofollow noreferrer">http://localhost/myproject/public/</a>.
  It returns blank page. And when I inspect the element it returns 500. Internal server error. Appreciate your help regarding this. Thank you. </p>
  
  <p>Laravel version: 5.4</p>
  
  <p>Php Version: 7.1.12</p>
  
  <p><a href="https://i.stack.imgur.com/2IkgP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2IkgP.png" alt="enter image description here"></a></p>
  
  <p>I can access the folders but when accessing the public folder itself. Returns blank page.</p>
  
  <p><a href="https://i.stack.imgur.com/9uh6L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9uh6L.png" alt="enter image description here"></a></p>
  
  <p>When run the php artisan serve. Its working</p>
  
  <p><a href="https://i.stack.imgur.com/dtVIl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dtVIl.png" alt="enter image description here"></a></p>