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

avatar
59    6 months ago

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

Answers { 2 }
avatar
6 months 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
6 months ago

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

it may resolve your issue