Laravel 5 has ORM models by default in app folder. I want to move these into app/models. When I do that then these classes are not found anymore.
How to make Laravel find the Eloquent ORM models from app/models?
Just create a folder named Models and move your files into it. After that, change the namespace of the models from just App to AppModels (update the usages as well) and run composer dump-autoload.
Models
App
AppModels
composer dump-autoload
2.1m questions
2.1m answers
60 comments
57.0k users