i have a git server and pushed my laravel 5.0 project files to repository 3 days ago. and working correctly. when i want to get this repository from another client, i get files but when i ran the codes PHP say this message:
PHP Warning: require(/var/www/html/laravel-egitim-project/laravel/vendor/illuminate/html/helpers.php): failed to open stream: No such file or directory in /var/www/html/laravel-egitim-project/laravel/vendor/composer/autoload_real.php on line 54
PHP Stack trace:
PHP 1. {main}() /var/www/html/laravel-egitim-project/laravel/artisan:0
PHP 2. require() /var/www/html/laravel-egitim-project/laravel/artisan:16
PHP 3. require() /var/www/html/laravel-egitim-project/laravel/bootstrap/autoload.php:17
PHP 4. ComposerAutoloaderInit87ba45c9c5ba3d6c32615e4101d8a2a6::getLoader() /var/www/html/laravel-egitim-project/laravel/vendor/autoload.php:7
PHP 5. composerRequire87ba45c9c5ba3d6c32615e4101d8a2a6() /var/www/html/laravel-egitim-project/laravel/vendor/composer/autoload_real.php:45
PHP Fatal error:
require(): Failed opening required '/var/www/html/laravel-egitim-project/laravel/vendor/illuminate/html/helpers.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/laravel-egitim-project/laravel/vendor/composer/autoload_real.php on line 54
PHP Stack trace:
PHP 1. {main}() /var/www/html/laravel-egitim-project/laravel/artisan:0
PHP 2. require() /var/www/html/laravel-egitim-project/laravel/artisan:16
PHP 3. require() /var/www/html/laravel-egitim-project/laravel/bootstrap/autoload.php:17
PHP 4. ComposerAutoloaderInit87ba45c9c5ba3d6c32615e4101d8a2a6::getLoader() /var/www/html/laravel-egitim-project/laravel/vendor/autoload.php:7 PHP 5. composerRequire87ba45c9c5ba3d6c32615e4101d8a2a6() /var/www/html/laravel-egitim-project/laravel/vendor/composer/autoload_real.php:45
How to solve this problem?
gitproject to a server (and subsequently cloning it to a new one) copies everything except what is in your.gitignorefolder. By default, everything in your/vendorfolder is ignored, so you have to runcomposer installafter cloning, which will create the/vendorfolder and fill it accordingly. If you manually added something to the/vendorfolder, you have to either manually add it again or specify to not-ignore it. - Tim Lewis