How to remove /public from url in laravel?



How to remove /public from url in laravel?..

Answer / Vineeta Rani

To remove '/public' from your URL in Laravel, you can configure the URL in your `.env` file by setting APP_URL=http://yourdomain.com (without '/public'). Additionally, ensure that the .htaccess file is properly configured.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What is valet used in laravel 5?

1 Answers  


Where do you locate database configuration file?

1 Answers  


What is http middleware?

1 Answers  


What is laravel trait?

1 Answers  


Command to connect vagrant via ssh?

1 Answers  


What is homestead.yaml?

1 Answers  


Does laravel prevent sql injection?

1 Answers  


What is laravel elixir?

1 Answers  


How to use select query in laravel?

1 Answers  


How to extend a layout file in laravel view?

1 Answers  


Is valet supports windows or ubuntu environment?

1 Answers  


What is the difference between facades vs helper functions?

1 Answers  


Categories