What does you autoload section of the composer.json file look like?
And alos, is the new server a case-sensitive filesystem; are you consistent with case between the directory / file names, and namespace / class names?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am setting a project on different server, but the issue I am facing is the for the namepsace. As on the previous server it was working fine. So, all my models are placed under "app/Models/", but the namespace used in models is "namespace App;" and when loading the models in controller "use App\Modelname;"..
When running the project it gives an error "Class 'App\Modelname' not found".
Any suggestions what could be the issue over here?
Please or to participate in this conversation.