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 trialderekdekalb
15,072 PointsHow can I import Project Files without getting errors?
Hi, I'm having trouble loading project files, i.e. I keep getting
Warning: require(/home/vagrant/Sites/laravel-basics/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vagrant/Sites/laravel-basics/bootstrap/autoload.php on line 17....
Should I update the yaml file in my Homestead folder?
Should I modify the autoload.php file in the Vagrant box?
Something else entirely? Please advise.
Also, I'm really enjoying the pace and content of this course.
2 Answers
Hampton Paulk
5,093 PointsThis warning is what you get if you did not install the Laravel Framework. The example files are just the project files. You will still need to fully install Homestead & Laravel to use those files. If you have done all of this, change directory into the project folder and run this command in your terminal:
composer install
derekdekalb
15,072 PointsThanks, Hampton. That worked, and I understand much more clearly what's going on.
Rather than reinstalling the framework each and every time, I can just replace the app, bootstrap, vendor, and public folders, leaving the link between the Vagrant box and local dev in Homestead folder in tact. Good stuff - thanks!