Adds the Laravel ability to separate validations from the controller

1.4.0 2019-03-17 16:53 UTC

This package is auto-updated.

Last update: 2021-06-05 17:01:41 UTC


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


First use composer to install the package..

composer require andreaspabst/lumen-request-validation

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


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

How to call

php artisan make:request RequestName

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

Example usage

Use your Request class in a controller via method injection

use App\Http\Requests\ExampleRequest;

class ExampleController extends Controller
    public function index(ExampleRequest $request) {
	    // ...

Other stuff...

Have Fun Using!


If you discover any security related issues, please email instead of using the issue tracker.


You're free to use this package, but if it makes it to your product we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is provided on Andreas

We publish all received postcards on our website.


Andreas Pabst


The MIT License (MIT). Please see License File for more information.