have you composer dumpautoload, and various commands available? (optimize, cleared cache (opcache if available) etc etc..
does it happen with JUST this model or ANY model?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi
I have a model called option in App\Lolotoobo\Models and I call it in the controller's constructor as
$this->options = \App\lolotoobo\Models\Option::getAutoloaded();
It works perfectly on local server, but on a Digital Ocean server I have
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'App\lolotoobo\Models\Option' not found
Thanx for your help
$option = new Option()..
why would this be causing problem?
I also dont see the relevance of
I'm coding with PHPStorm then I should have no problem with case
having seen the model.. i am not sure because you are creating get() func in the model.. and eloquent already has get() func.. so there is some error in the code/file which is stopping the class from being parsed...
Please or to participate in this conversation.