I am using laravel 5.8 and have an issue with model class. Since model is placed directly in app folder.
namespace App; use IlluminateDatabaseEloquentModel; class Login extends Model { // }
In Controller, I am using
namespace AppHttpControllers; use IlluminateHttpRequest; use appLogin; use DB;
I initialized model class object in MyController.php as
$table_ob=new Login;
but facing this issue “Class ‘appLogin’ not found” when i submit form to controller.
Advertisement
Answer
It’s minor spell mistake
use appLogin;
to
use AppLogin;