What error are you getting?
Laravel does not recognize the PHP class of Blade components
Hi, I need help!
I develop my Laravel applications using Windows with Laravel Homestead. In Laravel Homestead I am using PHP 8.0.21 and Laravel 9.23.
I deployed my project to a host without any errors. However, Laravel does not recognize the PHP class of Blade components, making it impossible to use the application.
It is as if the component were anonymous. I put a dd('hi') in the class construct and nothing happens.
I cleared all Laravel caches using artisan optimize:clear. I cleared all server caches. I checked access permissions. Nothing solved, still not being able to use the application.
In my local environment the application works, but in hosting it doesn't. I don't know what else to check as there is no error log.
The hosting PHP version is 8.0.20, I don't believe that's the reason for the problem.
Can you help me?
@jader I'm thinking that laravel might look for proper namespace based on StudlyCase. Try changing the class folders and namespaces to this
I would give an example, but I cannot copy from images
Edit: just saw @martinbean said the same thing below
Please or to participate in this conversation.



