Skip to content

Validation messages not working properly #18992

Description

@FrancescoTerrosi

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

  1. Create Filament user
  2. Go to /admin panel
  3. Log in and create a new "Partner" from "Partner resource"
  4. Click the "Create" button without inserting anything (will break the validation rule "required" for the "name" field labeled "Nome"
  5. [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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions