Installed Laravel - some questions

I installed Laravel.

I created a virtual host on my computer with the hostname laravel.local.

When I installed Laravel I chose the name sample-application, and when it installed it, it  created a directory in my public directory that was called sample-application.

My question is really dumb, but because of apache mod rewrite, you won't have to move files around to display a page for laravel.local right?



Screenshot-from-2018-01-20-10-39-25.pngScreenshot-from-2018-01-20-10-39-28.pngScreenshot-from-2018-01-20-10-39-21.png
burnedfacelessAsked:
Who is Participating?
 
Chris StanyonConnect With a Mentor Commented:
When you install Laravel, it will install the whole package into a folder of your choice. One of the sub-folders of that install will be called public. That's the folder that you should setup your virtual host to serve. So in your case, your Virtual Host's document root should be set up to serve:

/fullpath/to/laravel/sample-application/public/

Then when you visit laravel.local, it will correctly serve up the index.php file from the /public sub-folder
1
 
Marco GasiFreelancerCommented:
Unless you have used Homestead with vagrant. In that case you should setup Homestead.yaml file (you find a full explanation here).
0
 
burnedfacelessAuthor Commented:
Thanks man. That helped a ton.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.