Level 102
Well most likely you have a typo in either a file name or class name. Case matters.
Newclass != NewClass
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm getting this issue all the time after deploying on production. Even if I run 'composer dump-autoload' before deploying.
"message": "Class 'App\Models\NewClass' not found", "exception": "Error",
my build settings vapor.yml:
build:
- 'php artisan clear-compiled'
- 'composer dump-autoload'
- 'composer install --no-dev --classmap-authoritative'
- 'php artisan event:cache'
- 'npm install && npm run prod && rm -rf node_modules'
Please or to participate in this conversation.