2
votes

I was create latest laravel project using

composer create-project --prefer-dist laravel/laravel test

After when i run php artisan serv then give me error like:

failed to open stream: No such file or directory in /var/www/html/test/bootstrap/autoload.php on line 17

After i was run composer dumpauto and solved my problem and after i run php artisan serv then still get error as:

Class 'Illuminate\Foundation\Application' not found in /var/www/html/sample-project/bootstrap/app.php on line 14

Please help me and solve my issue

Thanks in advance

3
Are you run command composer update in your terminal?AddWeb Solution Pvt Ltd
Yes i was run composer update command but no luckJoel Lewis
Let me check itAddWeb Solution Pvt Ltd
Just confirming something; when you ran composer create-project --prefer-dist laravel/laravel test, did everything download properly, etc.? I ask because at this moment (for me, at least), api.github.com is having troublesChris Forrence

3 Answers

0
votes

In my case it worked removing "vendor" folder and "composer.lock" and then run:

composer install
0
votes

You should try this:

Please run below command:

composer install --no-scripts
0
votes

Watch step wise step in video tutorial for your problem

Video thumbnail
Expert Suggestion

then after delete your vendor folder and then hit compser install