3
votes

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.

2
have you edited public\index.php?Andriy Lozynskiy
how should i know? @noufalcepJosel Parayno
@AndriyLozynskiy i haven'tJosel Parayno
@JoselParayno require __DIR__.'/../bootstrap/autoload.php'; please check if this line is in your index.php?Andriy Lozynskiy

2 Answers

3
votes

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

composer update
0
votes

Try using 'composer diagnose'.