Laravel 4 removing public from URL

后端 未结 20 2108
一个人的身影
一个人的身影 2020-11-29 04:33

So, I\'m running xampp on Windows. I\'m currently trying to get familiar with the laravel framework. Now, when thats pointed out. How can i be able to access my laravel appl

20条回答
  •  自闭症患者
    2020-11-29 04:43

    I have found geart flow to work with laravel localy.

    What you can do is to configure xampp a bit. At your xamp's httpd.conf file you have to find document DocumentRoot and . Change root directory to yours laravel public folder and restart apache. Since when you can access your project simplly just typing localhost. Now if you want you can change your host file and rewrite local dns, for example: 127.0.0.1 example.laravel.com and now you can access your project with real url. It may look bit complicated, but it's not.

    Alternative to that would be php artisan serve. You can start server on different ports and when re-write hosts file.

    You could add some features to improve your workflow even more, for example vagrant or ngrok. You can share your project for live presentation (speed may be issue here).

提交回复
热议问题