can I get some guidance on how I can extend Laravel's native authentication system to manage both admin and client roles while following SOLID principles?
Get an idea of how to implement solutions following SOLID principles For ex:
namespace App\Http\Controllers\Auth;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class AdminLoginController extends LoginController
{
use AuthenticatesUsers;
protected function username()
{
return 'email'; // Change the login field to "email" for admin users
}
// Add other methods as needed to customize the login process for admin users
}