Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bitcodr/jsonschema-request

Laravel Server side form validation using JSON Schema .
https://github.com/bitcodr/jsonschema-request

json json-schema jsonschema jsonschema-request laravel schema validation

Last synced: 26 days ago
JSON representation

Laravel Server side form validation using JSON Schema .

Awesome Lists containing this project

README

        

# laravel-jsonschema-request
Laravel Server side form validation using JSON Schema

## Install
composer require amiralii/jsonschema-request

## How to use
1. Create a form request class as you would with artisan: php artisan make:request PersonRequest
2. Change the extended class in PersonRequest to use SchemaRequest/SchemaFormRequest
3. Implement the rules() method to return a JSON Schema string

Example
```