Php – Fatal error: require_once(): Failed opening required ‘C:\core/vendor/autoload.php’ (include_path=’C:\xampp\php\PEAR’) in C:\Users\zu

laravelPHP

I got an error:

Warning: require_once(C:\core/vendor/autoload.php): failed to open
stream: No such file or directory in
C:\Users\zumos\Desktop\ecom2\core\public\index.php on line 25

Fatal error: require_once(): Failed opening required
'C:\core/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in
C:\Users\zumos\Desktop\ecom2\core\public\index.php on line 25

Best Answer

In your project folder, the vendor folder is missing so you got this error:

Warning: require_once(C:\core/vendor/autoload.php): failed to open stream: No such file or directory in

The solution is simple, run this two commands:

composer update --no-scripts

It will Skips execution of scripts defined in composer.json file.

composer update

It will update your dependencies as they are specified in composer.json file.

With these two commands, you will re-create the vendor folder in your project

Related Topic