Home > other >  Warning: require (/home/Vagrant/code/Laravel/public/../vendor/autoload. PHP)
Warning: require (/home/Vagrant/code/Laravel/public/../vendor/autoload. PHP)

Time:12-23




Composer composer and install the update all over or error





CodePudding user response:


I also encountered this problem

CodePudding user response:


I met about two kinds, the first is a version of PHP version have not reached laravel framework requirements, such as 5.8 need php7.1.3 laravel, and your PHP version is lower than this; Additionally one kind is, composer, you have lost part in the cache laravel vendor directory, you can use the composer to clear the cache command to clear the local cache, then re-run composer install or composer update

CodePudding user response:

If you use a favored
The map: ce. Cc
To:/home/vagrant/code/laravelnew7/public
Port: 80
PHP: '7.4'

Pay attention to the path, use '\' can also lead to more problems
  • Related