diff --git a/resources/views/settings/ldap.blade.php b/resources/views/settings/ldap.blade.php
index 794e9b7492..1cfdad555c 100644
--- a/resources/views/settings/ldap.blade.php
+++ b/resources/views/settings/ldap.blade.php
@@ -340,7 +340,11 @@
demoMode }}>
- {!! $errors->first('ldap_fname_field', '
:message') !!}
+ @error('ldap_fname_field')
+
+ {{ $message }}
+
+ @enderror
@if (config('app.lock_passwords')===true)
{{ trans('general.feature_disabled') }}
@endif
@@ -355,7 +359,11 @@
demoMode }}>
- {!! $errors->first('ldap_auth_filter_query', '
:message') !!}
+ @error('ldap_auth_filter_query')
+
+ {!! $message !!}
+
+ @enderror
@if (config('app.lock_passwords')===true)
{{ trans('general.feature_disabled') }}
@endif