I've solved it! This line
Auth::guard('admin')->attempt(array('OUsername' => $username, 'OPassword' => $password))
Should be
Auth::guard('admin')->attempt(array('OUsername' => $username, 'password' => $password))
It will work even if I have a different column name for password since in my model I have specified this
public function getAuthPassword()
{
return $this->OPassword;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community