Skip to content
Advertisement

PHP Fatal error: Uncaught Error: Class ‘IlluminateFoundationApplication’ not found [closed]

i am installing laravel for the first time everything seemed perfect until i enter the command ‘php artisan serve’. its showing

PHP Fatal error:  Uncaught Error: Class 'IlluminateFoundationApplication' not found in /home/poojitha/.composer/vendor/bin/blog/bootstrap/app.php:14
Stack trace:
#0 /home/poojitha/.composer/vendor/bin/blog/artisan(20): require_once()
#1 {main}
  thrown in /home/poojitha/.composer/vendor/bin/blog/bootstrap/app.php on line 14

i tried every command like

composer dump-autoload

`composer update --no-scripts`

`composer dump-autoload`

`composer install --no-scripts`

nothing is working

Advertisement

Answer

Your error message shows you have a problem with composer autoloading. Try the following steps;

  1. Make sure you have deleted the vendor folder and composer.lock file
  2. Run composer install
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement