Duleep
Duleep

Reputation: 1

I have an error in running the "php artisan serve" command in laravel , it gives the following error

 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

Answers (2)

Christian Gallarmin
Christian Gallarmin

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

Alexander Villalobos
Alexander Villalobos

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

Related Questions