© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to customize $fail message (with html too) to an existing rule ? - Filament
F
Filament
•
3y ago
•
14 replies
vahnmarty
How to customize $fail message (with html too) to an existing rule ?
For example
, you are using
->unique(User::class, 'email')
->unique(User::class, 'email')
. The default error message will be
:
"The email has already been taken
" since this is coming from the
en/validation.php
en/validation.php
.
How about if you need html for that like
"This email already exists
.
<a href
=
"url
(
'forgot
-password
;
)
"
>Forgot Password
?
<
/a
>
"
?
Filament
Join
A powerful open-source UI framework for Laravel • Build and ship apps & admin panels fast with Livewire
20,181
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
How to customize validation rule message?
F
Filament / ❓┊help
3y ago
How to customize
F
Filament / ❓┊help
11mo ago
Customize the style existing components!
F
Filament / ❓┊help
8mo ago
Inserting html to validation message
F
Filament / ❓┊help
2y ago