masterskill / validation-error-trait
This package is a trait to validate input and return directly error with status code 400 to FormRequest in laravel
1.0.0
2024-07-01 12:59 UTC
Requires
- php: ^8.0
- laravel/framework: >=9
This package is auto-updated.
Last update: 2025-03-01 00:42:05 UTC
README
The package
This package is for validating directly the FormRequest and return all error in JSON like with BAD_REQUEST status code.
Installation
To install this, you need Composer and the Laravel framework. After that, you can install the package with the command :
composer require masterskill/validation-error-trait
Note
This project is just an implementation of the failedValidation function for the form request in Laravel. Always read the framework documentation to read all stuff about it.