Skip to content
Discussion options

You must be logged in to vote

Yes, you can customize error messages in Backpack to make them more user-friendly. There are a few approaches to handle this situation:

1. Using attributes() method

The best way to handle this is to use the attributes() method in your FormRequest class. This method allows you to map field names to more user-friendly labels:

public function attributes()
{
    return [
        'currentDues.*.amountPaid' => 'amount paid',
    ];
}

This will replace all instances of "currentDues.*.amountPaid" with "amount paid" in all validation error messages, regardless of which validation rule failed.

2. Specific validation rule messages

If you need different messages for different validation rules, you ca…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by prescriptionlifeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant