nova-errors
nova-errors copied to clipboard
Display all form errors in a modal at the top of the page.
Nova Errors
Display all form errors in a modal & scroll to the top of the page.
![Laravel Nova Validation Error Package](https://user-images.githubusercontent.com/29180903/60738637-0bb0ed80-9f2d-11e9-86c2-2409dbf56e6f.png)
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
Author
Hi 👋, Im Brian Dillingham, creator of this Nova package and others
Hope you find it useful. Feel free to reach out with feedback.
Follow me on twitter: @im_brian_d