Running Laravel from a git repo

I can install Laravel and get it up and running just fine using the installation process, but what I don’t understand is how I’m suppose to be able to push that same source code and be able to run it from a repo, like github. When I do this, cloning it in doesn’t allow me to be able to run php artisan anything.

Moreover, when I have a working directory, pushing that up to a repo, cloneing it back down, still doesn’t work. I’m unable to run artisan. The only way I can do this is through composer from the install instructions, which would create a new project.

  • Install via Composer or copy vendor folder
  • Composer Package not found
  • composer install --prefer-source throwing error
  • How to require a local package that depends on other local package
  • Allow users of an opensourced project to add their own files to their copy
  • Test and Debug Composer plugins
  • Please guide me; I’m at a loss here.

  • Aborted old git rebase and lost commits since the rebase started
  • .gitignore_global is not working, even .gitconfig shows the .gitignore_global
  • Creating new Gerrit project
  • Find out which user is incorrectly resolving merge conflicts?
  • How would you include the current commit id in a git project's files?
  • Makefile $(command) not working but `command` did
  • 2 Solutions collect form web for “Running Laravel from a git repo”

    Its because the vendor directory is not included when you clone.

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

    If you had checked .gitignore file, you might have already got this.

    Because we don’t commit dependency into git repository. We have to manually install it via composer install for a fresh copy of a project in any machine. Once you have local copy, you only require to update it or install when any update into composer.lock file.

    Git Baby is a git and github fan, let's start git clone.