如何在laravel删除文件夹中的公共文件、夹中、如何在、laravel

2023-09-02 00:30:33 作者:无望的纠缠

我有laravel设置在XAMPP位于的http://本地主机/ laravel 但测试它,我得去本地主机/ laravel /公共 我该如何摆脱/公众? 我想是能够直接通过 HTTP访问://本地主机/ laravel

解决方案 从根拆卸的.htaccess如果您已创建 在采取所有文件和文件夹,从公众的根目录 从index.php中删除../ 在重命名或删除公用文件夹

I have laravel setup on xampp located in http://localhost/laravel but to test it I have to go to localhost/laravel/public How do I get rid of the /public ? I would like to be able to access it directly through http://localhost/laravel

解决方案

REMOVING .htaccess from root if you have created take all files and folder from public to root directory remove ../ from index.php rename OR remove public folder 看完这篇,你的PHP代码优雅一个档次 Model