An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Nova Errors

[![Latest Version on Github](https://img.shields.io/github/release/dillingham/nova-errors.svg?style=flat-square)](https://packagist.org/packages/dillingham/nova-errors)
[![Total Downloads](https://img.shields.io/packagist/dt/dillingham/nova-errors.svg?style=flat-square)](https://packagist.org/packages/dillingham/nova-errors) [![Twitter Follow](https://img.shields.io/twitter/follow/im_brian_d?color=%231da1f1&label=Twitter&logo=%231da1f1&logoColor=%231da1f1&style=flat-square)](https://twitter.com/im_brian_d)

Display all form errors in a modal & scroll to the top of the page.

Laravel Nova Validation Error Package

### 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)