samedi 10 février 2018

Laravel 5.5 : L5.5 Model can't be founded in distant server but works on local server

I have a model called option in App\Models and I call it in the controller's constructor as

$this->options = \App\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\Models\Option' not found

I done a composer dumpautoload but nothing changed.

Thanx for your help



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire