Using Lumen / Laravel, This Way to Remove Public URL
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.
- Make sure you already install laravel / lumen
- Open directory public/ then you will see two files there : index.php and .htaccess
- Cut or move these files out of public/ folder.
- After that open index.php and update link $app from
$app = require __DIR__.’/../bootstrap/app.php’;
$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