Reputation: 800
So excited as I have just started working on Laravel, After working nearly for an year with Plain PHP, I finally Started with a framework.
Friends can you please help me with some of my doubts,,,
Have done this much so far.. But there is something remaining, the url should be friendly like( localhost/index or localhost/welcome ) but i have to type them fully as ( localhost/public/index.php ).
What is the problem? What am I lacking.
Upvotes: 0
Views: 1214
Reputation: 6319
You should not have to use /public/index.php
You should setup your webserver (apache/nginx) to use your /public folder as a web root. A typical Laravel installation will take care of the rest if you're using Apache.
See the "Pretty URLs" section of the documentation: http://laravel.com/docs/5.1/installation
Upvotes: 2