If you create a new model usually will get the error.Solution is use the below line of code in the respective model
namespace App\Models;
instead of app;
If you create a new model usually will get the error.Solution is use the below line of code in the respective model
namespace App\Models;
instead of app;