Download the PHP package wt-health/laravel-json-schema-request without Composer
On this page you can find all versions of the php package wt-health/laravel-json-schema-request. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wt-health/laravel-json-schema-request
More information about wt-health/laravel-json-schema-request
Files in wt-health/laravel-json-schema-request
Package laravel-json-schema-request
Short Description Like FormRequests, but for validating against a json-schema
License MIT
Homepage https://github.com/wt-health/laravel-json-schema-request
Informations about the package laravel-json-schema-request
JSON Schema Request
Laravels Form Request Validation for JSON Schema documents
Installation
Usage
The development experience is identical to Laravel's Form Request Validation, except instead of writing Laravel validation rules, you write a JSON Schema.
You can create a new request using the make:json-request
command
You will now have new request class App\Http\Requests\MyJsonRequest
, Below you can see a basic example schema.
Once you have a JsonSchemaRequest
object, all you need to do is type-hint the request on your controller method.
The incoming form request is validated before the controller method is called.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-json-schema-request with dependencies
php Version ^8.2|^8.3
illuminate/support Version ^10.0|^11.0