protected function getOverrideValue($key) { if ($key === 'registration-enabled' && config('auth.method') === 'ldap') { return false; } return null; }