https://github.com/dillingham/nova-errors
Display all form errors in a modal at the top of the page.
https://github.com/dillingham/nova-errors
laravel laravel-nova
Last synced: about 1 year ago
JSON representation
Display all form errors in a modal at the top of the page.
- Host: GitHub
- URL: https://github.com/dillingham/nova-errors
- Owner: dillingham
- License: mit
- Created: 2019-07-05T16:34:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-25T08:15:18.000Z (almost 4 years ago)
- Last Synced: 2025-04-16T02:48:48.373Z (about 1 year ago)
- Topics: laravel, laravel-nova
- Language: Vue
- Homepage:
- Size: 98.6 KB
- Stars: 14
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Nova Errors
[](https://packagist.org/packages/dillingham/nova-errors)
[](https://packagist.org/packages/dillingham/nova-errors) [](https://twitter.com/im_brian_d)
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
```php
use NovaErrorField\Errors;
```
```php
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](https://novapackages.com/collaborators/dillingham)
Hope you find it useful. Feel free to reach out with feedback.
Follow me on twitter: [@im_brian_d](https://twitter.com/im_brian_d)