masterskill/validation-error-trait

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

Maintainers

Package info

github.com/masterSkill77/validation-error-trait

pkg:composer/masterskill/validation-error-trait

Statistics

Installs: 95

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2024-07-01 12:59 UTC

This package is auto-updated.

Last update: 2026-03-01 00:58:47 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.