Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

michalis's avatar

Fatal error: Class 'Illuminate\Foundation\Application' not found (deploying on amazon eb)

I deploy on amazon elastic beanstalk and get this error

Fatal error: Class 'Illuminate\Foundation\Application' not found in /var/app/current/bootstrap/app.php on line 14

Does anyone know why this is happening?

0 likes
2 replies
michalis's avatar

when you deploy on amazon it runs composer automatically

I found a fix online, but i dont understand why this is happening

if I run composer update --no-scripts everything is ok

does anyone have any clue why this is happening?

Please or to participate in this conversation.