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;
- Make sure you have deleted the
vendor
folder andcomposer.lock
file - Run
composer install