I thought I could just slap some code in my authorize function and check if the user has the correct role. The problem of course is that you then get a 403 error when you try to login with the wrong account instead of some validation error. What would be a nice way to do this?
public function authorize()
{
$user = User::where('email', '=', $this->input('email'))->first();
return $user && $user->hasRole(Role::super_admin()->value);
}