How to use Laravel and GitHub for several programmers?

I have a question about laravel and github. Why laravel automatically ignores the provider directory.

It is just so difficult if I want to use work on a project with two computers, and after the other computer loads the version of the larvel GitHub project (in which some files are missing), the server does not work.

The command line tells me the following:

Warning: require (C: \ app \ XAMPP \ htdocs \ xxxx \ bootstrap /../ vendor / autoload.php): could not open the stream: there is no such file or directory in C: \ app \ XAMPP \ htdocs \ xxxx \ bootstrap \ autoload.php on line 17

Fatal error: require (): failed to open: C: \ app \ XAMPP \ htdocs \ xxxx \ bootstrap /../ vendor / autoload.php '(include_path ='; C: \ app \ XAMPP \ php \ PEAR ' ) in C: \ app \ XAMPP \ htdocs \ xxxx \ bootstrap \ autoload.php on line 17

How can i fix this?

+4
source share
1 answer

In most cases, the directory vendorshould not be stored in the original control. This has nothing to do with Laravel; this is how you usually work with Composer.

Way to ensure that everyone in your group (and your production servers) have worked with the same dependencies, must support composer.lockand composer.jsonin the source control, so your team can test and run repo composer installNOT composer update.

, , composer update composer.lock composer.json.

+4

All Articles