Reputation: 1
php artisan serve
PHP Fatal error: Class 'Illuminate\Foundation\Application' not found in F:\xampp\htdocs\grproject\bootstrap\app.php on line 14
Fatal error: Class 'Illuminate\Foundation\Application' not found in F:\xampp\htdocs\grproject\bootstrap\app.php on line 14
I ran the following command also, but no result, i get the above error again.
composer update
Upvotes: 0
Views: 2384
Reputation: 660
run this line of code.
php artisan clear-compiled
composer dump-autoload -o
composer update --no-scripts
php artisan serve --host 0.0.0.0
Hopefully this resolves your problem
Upvotes: 0
Reputation: 461
try this
php artisan clear-compiled
composer dump-autoload
if not work try this command
composer update --no-scripts
try this command
composer dump-autoload
composer install --no-scripts
after done command
run
composer update
or check this question Class 'Illuminate\Foundation\Application' not found Laravel
Upvotes: 3