Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel vendor/autoload is missing

Tags:

php

laravel

I'm a beginner in laravel, so when I start creating my project using composer create-project laravel/laravel my-project-name 5.4.*

then i run it on my browser http://localhost:8080/test/public/ and it shows me this error:

Warning: require(C:\xampp\htdocs\test\public/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\test\public\index.php on line 24

and

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\test\public/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\test\public\index.php on line 24

I've tried using composer install, update etc.. but nothing seems to happen.

like image 779
Josel Parayno Avatar asked Oct 16 '25 23:10

Josel Parayno


1 Answers

You'll solve your problem with running in the terminal inside your project

composer update
like image 69
Sletheren Avatar answered Oct 19 '25 12:10

Sletheren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!