How I can fix the error “Class 'Illuminate\Foundation\Application’ not found” in laravel?

avatar
621    1 year ago

How I can fix the error “Class 'Illuminate\Foundation\Application’ not found” in laravel?

Answers { 2 }
avatar
1 year ago

error comes because of vendor library not install properly.

you can resolve your error using following commands,

  • composer dump-autoload
  • composer install --no-scripts

make sure everything works now as expected (no errors!)

  • composer update

avatar
1 year ago

just remove /bootstrap/start.php , composer.lock , and vendor directory
then run composer install

it may resolve your issue