I tried form validation in laravel. I have a text input field in my form called "Category" and I am assigned the field name as "cat" as short.
And I defined validation rules like this.
public static $rules=array( "name"=>"required|min:3", "cat"=>"required" );
When the check fails, I get an error message similar to this
The name field is required. The cat field is required.
But I want to display it as "Category field required" instead of "cat".
How can I change "cat" to "Category" in the error message ?.
source share