How to Remove Public From url in Laravel 6 Or Laravel 5.8?

Hello Friends Today, I will tell You through Experts PHP Tutorial, How you can remove public from url via laravel. I will tell you step by step. So let’s go.

After installing laravel project, your project will be open in localhost with http://localhost/blogs/public this url. Now I will tell you step to step.

Keywords :- Remove Public From url via Laravel 5.8 or 6.0, Remove Public From url via Laravel 5.7, Laravel 5.6, Laravel 5.5, Laravel 5.4, Laravel 5.3, Laravel 5.2

Step 1:- First of all, now you go to the public folder of your project. In it you will find a file of .htaccess name. You have to remove the file from there and take it out of the public folder.

Step 2:- Outside you will find a file of a server.php name. You have to change the name of that file. The name of that file is to delete server.php and keep index.php.

Step 3:- Now if you remove public from your url and run the project of laravel then your project will be open without public.