Q:

Class 'App\Models\X' not found - after moving models to a folder

I moved my models from app\ to app\Models,
then I also changed the use paths in the controllers:
Before:
use App\Project;

After:
use App\Models\Project;

It should work, but now I get Class 'App\Models\X' not found
What am I doing wrong?

A:

Moving to a different folder isnt the only thing you need to do. You need to change the namespace as well
So, in your model, add the following
namespace App\Models;

