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 fin
Say you want to move the models to app/Models
For each model change :
namespace App;
to
namespace App\Models;
Check these files and search especially app\User
app/Http/Controllers/Auth/RegisterController.php
config/auth.php
config/services.php
database/factories/ModelFactory.php
database/factories/UserFactory.php
And change App/ModelExample
to App/Models/ModelExample
Run composer dump-autoload