Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Robert Mylne
13,708 PointsLaravel Xampp
Can you just use xampp for laravel like with other php? I can not get vagrant and homestead to work. It keeps giving me a connection error
2 Answers
Maciej Sitko
16,164 PointsYes,this works.
You can set it up on either typical apache or xampp and then use its Virtual Hosts.
Follow up this post by core Laravel developer of Laravel Dayle Rees to set up laravel and laravel's pretty urls properly:
http://daylerees.com/codebright/getting-started
There's lots of info how to do that, with the configuration of apache Virtual hosts (httpd-vhosts.conf). After configuring those, you'd need to map a proper hostname in your windows (or linux/mac os x) /hosts file, for instance, adding this:
127.0.0.1 laravel.dev
Remember that virtual hosts of XAMPP must match proper filepath and hostname (you can use ServerAlias there).
To be honest, this would be the best solution you can actually apply.