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

ruffsaint's avatar

Class not found error

Good day, please i just hosted a laravel project on a linux cpanel using terminal but after doing so I was getting this error: In ProviderRepository.php line 208: Class "App\Providers\ComposerServiceProvider" not found I have checked config/app configuration is fine php artisan config::clear and composer dump-autoload dint fix the error.

HELP

0 likes
5 replies
Tray2's avatar

Have you entered the correct namespace and class name?

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Make sure that the casing of the filename and class are the same. It does not matter on Mac and windows, but Linux is case sensitive

1 like
dev-alves's avatar

@Sinnbeck Thank you so much! I had the same problem haha. I fixed the folder and namespace to be case sensitive

Please or to participate in this conversation.