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 trialkudzai
6,988 PointsLaravel 5 Clone
Hello,
I have a laravel 5 app that I"m working from and it's pushed up to Github. After pulling it into a different machine (lap top) to continue working on it, I cannot seem to get it to work. It works fine on my other machine (desk top). I come from Rails and I am new to Laravel. In Rails I would just run "bundle install" and "rake db:migrate" and my app would be set to go. What do I need to with Laravel to get my app running after cloning it? Thanks!
6 Answers
thomascawthorn
22,986 PointsAny luck getting your project up?
Now you've installed your dependencies, you should be able to run
php artisan migrate
to set up your database. Make sure that you've already created the database with the correct credentials in your local enviornment first!
thomascawthorn
22,986 PointsAwesome!
Okay, so you've cloned your repo to a local directory - using terminal, navigate to the root of that directory.
Make sure you've got a composer.json file set up (and it's the same as your desktop version).
type composer into the command line to make sure it's all working properly. You should get back all the help content etc..
composer
Then run
composer install
to install your dependencies. You should see loads of 'loading' or 'installing' things coming back at you.
Let us know when you've reached this step :)
thomascawthorn
22,986 PointsHey!
Laravel uses composer - Composer is to PHP what bundle is to Ruby.
First question - Is composer installed on the laptop?
kudzai
6,988 PointsHello,
Thanks for your response. Yes, composer is also on my laptop.
kudzai
6,988 PointsThanks, Tom. My composer.json file is matches with the one on the desktop. I've run $composer.
kudzai
6,988 PointsYay! Thanks, it works. Awesome!