Using Lumen / Laravel, This Way to Remove Public URL

Photo by Safar Safarov on Unsplash

Laravel is powerfull framework and Lumen as we known is powerfull and familiar microservices. I create this post for simple documentation. How to remove public url when running lumen or laravel.

It’s Simple,

$app = require __DIR__.’/../bootstrap/app.php’;

to

$app = require __DIR__.’/bootstrap/app.php’;

In laravel 5.* maybe you cannot find index.php but you will see server.php. rename it to index.php then update like that. After it all you can running lumen or laravel without /public like this

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store