Hello,
im trying to use multiauth for users table and admin table but im getting this error:
Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Auth\UserInterface, instance of Admin given, called in C:\xampp\htdocs\userapi\vendor\laravel\framework\src\Illuminate\Auth\Guard.php on line 370 and defined
Your Admin class doesn't implement the right class, it's tricky because the Laravel documentation doesn't mention this at all, take a look at the default User.php model.
Hello, im trying to use multiauth for users table and admin table but im getting this error:
Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Auth\UserInterface, instance of Admin given, called in C:\xampp\htdocs\userapi\vendor\laravel\framework\src\Illuminate\Auth\Guard.php on line 370 and defined
here is my model Admin.php
thank you