Custom Error Messages and Attributes

You can define custom messages and attributes by implementing the messages and attributes methods:

public function messages(): array
{
    return [];
}

public function attributes(): array
{
    return [];
}

Last updated