Nova Errors
Display all form errors in a modal & scroll to the top of the page.
Install
composer require dillingham/nova-errors
Add the Errors
field to your resource
use NovaErrorField\Errors;
public function fields(Request $request)
{
return [
Errors::make(),
ID::make()->sortable(),
//
];
}
And when validation errors occur:
- it will scroll to the top of the page
- it will display a list of validation errors