How to run Laravel from root directory, not from public?

后端 未结 2 687
刺人心
刺人心 2020-12-15 02:35

By default, Laravel project is run from public directory, for this I must enter URL like as:

http://localhost/public/

How to configure Lara

2条回答
  •  渐次进展
    2020-12-15 03:24

    Setup your webserver (probably Apache or NginX) to use the public folder of your laravel app as root directory. Or use a public_html folder and symlink it to your public folder, which basically does the same.

提交回复
热议问题