Hello! I have table users and have field active. I want make that if 'active'=1 => auth complete. How to do it I'll never know
Please help me
if (Auth::attempt(['email' => $email, 'password' => $password, 'active' => 1]))
{
// The user is active.
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community