masterskill/validation-error-trait

This package is a trait to validate input and return directly error with status code 400 to FormRequest in laravel

Installs: 95

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/masterskill/validation-error-trait

1.0.0 2024-07-01 12:59 UTC

This package is auto-updated.

Last update: 2025-09-29 03:14:40 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.