Running Laravel from git repository

I can install Laravel and quickly launch it and start using the installation , but I don’t understand how I am. "Suppose you can use the same source code and be able to run it from a repo like github . When I do this, clone it doesn't let me run php artisan anything.

Also, when I have a working directory, pushing this to a repo, cloning it back down, still doesn't work. I can not start artisan . The only way to do this is to create a composer from the installation instructions, which will create a new project.

Please guide me; I'm at a loss here.

+1
source share
2 answers

This is because the vendor directory is not included when cloning.

To solve this problem, run composer install , where you cloned it, and then artisan should work.

+2
source

If you .gitignore file, you may already have this.

Because we do not fix the dependency in the git repository. We must manually install it using composer install for a new copy of the project on any computer. If you have a local copy, you only need to update it or install it when updating to the composer.lock file.

+1
source

All Articles