Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
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 admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to customize validation rule message?
F
Filament / ❓┊help
3y ago
Customize the style existing components!
F
Filament / ❓┊help
6mo ago
How to customize
F
Filament / ❓┊help
10mo ago
Inserting html to validation message
F
Filament / ❓┊help
2y ago