Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel - Artisan not working

Tags:

I'm aware of the other questions out there, but they are different to my situation.

I installed a fresh copy of my own laravel, and I tried running php artisan list, which works.

Now, I have a colleague who has installed a copy of laravel himself, and he pushes his entire directory onto a git repository. I pulled the entire branch off the repository, and tried running php artisan list, but nothing happens this time. I mean, literally, nothing happens.

Any ideas as to why this is happening?

like image 732
He Hui Avatar asked Feb 19 '14 14:02

He Hui


1 Answers

Generally speaking, the vendor directory is not committed to VCS, as such, doing a clone on a standard Laravel app won't include all its dependencies.

Once you have cloned, doing composer install (or composer update if you want the latest packages as a developer) will fetch the dependencies and allow your app to work.

like image 122
alexrussell Avatar answered Dec 26 '22 22:12

alexrussell