PHPackages                             groovili/lumen-make - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. groovili/lumen-make

ActiveLumen[Utility &amp; Helpers](/categories/utility)

groovili/lumen-make
===================

Lumen make adds more make commands to lumen for jobs, controllers, middleware, etc.

1.0.0(8y ago)3243MITPHP

Since May 12Pushed 7y ago2 watchersCompare

[ Source](https://github.com/groovili/lumen-make)[ Packagist](https://packagist.org/packages/groovili/lumen-make)[ RSS](/packages/groovili-lumen-make/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Lumen make
==========

[](#lumen-make)

[![Latest Stable Version](https://camo.githubusercontent.com/4ea238a715acde54e6c6739d2d82ea513a6dd43b82f9fbcce31208dcdab0b3a0/68747470733a2f2f706f7365722e707567782e6f72672f67726f6f76696c692f6c756d656e2d6d616b652f762f737461626c65)](https://packagist.org/packages/groovili/lumen-make)[![Total Downloads](https://camo.githubusercontent.com/b22e742419ad707ba0e4ba0591ded67ce36b024ddce61eab1f60313ae898eb45/68747470733a2f2f706f7365722e707567782e6f72672f67726f6f76696c692f6c756d656e2d6d616b652f646f776e6c6f616473)](https://packagist.org/packages/groovili/lumen-make)[![License](https://camo.githubusercontent.com/416df54467b15750acd5a8ae4dfa5df1e4e6d97029ed8f440ece31c798d1d8aa/68747470733a2f2f706f7365722e707567782e6f72672f67726f6f76696c692f6c756d656e2d6d616b652f6c6963656e7365)](https://packagist.org/packages/groovili/lumen-make)

A package built for **Lumen** that ports most of the **make commands** from Laravel and adds **Form Request Validation** functionality.

***At the moment package compatible only with Lumen &gt;= 5.6.***

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

[](#installation)

Just run the following command

```
> composer require groovili/lumen-make
```

or this to enable package only for development needs

```
> composer require groovili/lumen-make --dev
```

Uncomment or add this line in `bootstrap/app.php`

```
$app->register(App\Providers\EventServiceProvider::class);
```

And add this to `bootstrap/app.php` to enable generators

```
// To enable generator permanently
$app->register(Groovili\LumenMake\LumenMakeServiceProvider::class);

// To enable generator in development mode
if (env('APP_ENV') !== 'production' || env('APP_ENV') === 'local') {
    $app->register(Groovili\LumenMake\LumenMakeServiceProvider::class);
}
```

Form Request Validation
-----------------------

[](#form-request-validation)

Add line to `bootstrap/app.php` to enable form requests

```
$app->register(Groovili\LumenMake\Providers\FormRequestServiceProvider::class);
```

Then run

```
> php artisan make:request {name}
```

Below is example of generated request with validation rules:

```
