Package
filament/filament
Package Version
v5.x
Laravel Version
v12+
Livewire Version
v4
PHP Version
PHP 8.4
Problem description
Validation messages simply seem to not work.
I have a resource with some fields that require validation (from a simple 'required' to a 'min/max' check), e.g.:
TextInput::make('name') ->required() ->validationMessages([ 'required' => 'Inserire il nome del partner.', ]) ->label('Nome'),
My validation messages are ignored in the resource creation page and default messages are displayed instead.
Expected behavior
The framework should display my custom validation messages.
Steps to reproduce
- Create Filament user
- Go to /admin panel
- Log in and create a new "Partner" from "Partner resource"
- Click the "Create" button without inserting anything (will break the validation rule "required" for the "name" field labeled "Nome"
- [Optionally] Create any form component in a resource that has custom validation messages
Reproduction repository (issue will be closed if this is not valid)
https://github.com/FrancescoTerrosi/validation-messages-bug/tree/main
Relevant log output
Package
filament/filament
Package Version
v5.x
Laravel Version
v12+
Livewire Version
v4
PHP Version
PHP 8.4
Problem description
Validation messages simply seem to not work.
I have a resource with some fields that require validation (from a simple 'required' to a 'min/max' check), e.g.:
TextInput::make('name') ->required() ->validationMessages([ 'required' => 'Inserire il nome del partner.', ]) ->label('Nome'),My validation messages are ignored in the resource creation page and default messages are displayed instead.
Expected behavior
The framework should display my custom validation messages.
Steps to reproduce
Reproduction repository (issue will be closed if this is not valid)
https://github.com/FrancescoTerrosi/validation-messages-bug/tree/main
Relevant log output