PHPackages                             andreaspabst/lumen-request-validation - 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. andreaspabst/lumen-request-validation

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

andreaspabst/lumen-request-validation
=====================================

Adds the Laravel ability to separate validations from the controller

1.4.0(7y ago)1265MITPHP

Since Mar 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/andreaspabst/lumen-request-validation)[ Packagist](https://packagist.org/packages/andreaspabst/lumen-request-validation)[ RSS](/packages/andreaspabst-lumen-request-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Lumen Request Validation
========================

[](#lumen-request-validation)

Adds the well known Laravel ability to separate validations from the controller.

Installation
------------

[](#installation)

First use composer to install the package..

`composer require andreaspabst/lumen-request-validation`

Next register the packages service provider in your *bootstrap/app.php*

`$app->register(AndreasPabst\RequestValidation\RequestServiceProvider::class);`

Then you are able to create requests with *artisan* comparable to laravel

How to call
-----------

[](#how-to-call)

`php artisan make:request RequestName`

The new class can be found under app/Http/Requests folder.

Example usage
-------------

[](#example-usage)

Use your Request class in a controller via method injection

```
