Reputation: 543
How do you to setup a Git Repo for a Laravel Project to run after cloning from a remote host like Gitlab, Guthub or Bitbucket? After cloning a Laravel repo to a local computer php artisan serve gives this error 'PHP Warning: require(D:\MyGitLab\laravel-project/vendor/autoload.php): failed to open stream: No such file or directory '. This means simply cloning does not work. What is the solution? I added all files and directories to origin repo.
Upvotes: 3
Views: 1531
Reputation: 1585
You need to run
composer update
first to install package dependency and run
php artisan serve
and run
php artisan key:generate
Upvotes: 1
Reputation: 89
composer update
commandphp artisan key:generate
commandphp artisan migrate
command.php artisan serve
command.You are good to go!!!
Upvotes: 4