PHPackages                             punkrockio/laravel-schemarequest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. punkrockio/laravel-schemarequest

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

punkrockio/laravel-schemarequest
================================

Server side form validation using JSON Schema

15PHP

Since Apr 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/punkrockio/laravel-schemarequest)[ Packagist](https://packagist.org/packages/punkrockio/laravel-schemarequest)[ RSS](/packages/punkrockio-laravel-schemarequest/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-schemarequest
=====================

[](#laravel-schemarequest)

Server side form validation using JSON Schema

How to use
----------

[](#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

```
