mercredi 23 novembre 2016

Laravel 5 - Moved User model to App/Models causing autoload issues

Working on a inherited Laravel Spark project that contained two User models.

One is the standard Spark model inside the App directory but the other is inside App/Models. I have combined the two models and updated the auth.php to reference the User model inside the Models directory but composer dump-autoload is saying it cannot find the App/User model.

How can I tell the autoloader that the User model is not there any more but instead in the Models directory?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire