I`m working on a project with Nova dashboard. For some reason I can`t see validation error messages.
If there is an validation error, I can see that as an exception in browser console. But not in Nova UI.
I can see success message, if all fields of form are input correctly.
I`m new to Nova, can anyone help me to debug this issue? I mean I don`t know where to look for to figure out this issue
Error trace from browser:
{
"errors":"Sorry, something went wrong.",
"exception":"Illuminate\\Validation\\ValidationException",
"message":"The given data was invalid.",
"trace":[{
"file":"\/home\/ausvacs\/public_html\/nova\/src\/PerformsValidation.php",
"line":18,
"function":"validate",
"class":"Illuminate\\Validation\\Validator",
"type":"->",
"args":[]
}]
}
Fields method of Agency nova model (Table name:agency):
public function fields(Request $request)
{
return [
ID::make()->sortable(),
Text::make('Name')
->sortable()
->rules('required', 'string'),
];
}
Error on browser console:
Exception on browser network tab: