2017 © Pedro Peláez
 

lumen lumen-make

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

image

smskin/lumen-make

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

  • Wednesday, February 8, 2017
  • by smskin
  • Repository
  • 1 Watchers
  • 7 Stars
  • 3,767 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 49 % Grown

The README.md

lumen-make

A package built for lumen that ports most of the make commands from laravel., (*1)

Info

This package based on michaelb/lumen-make (https://github.com/michaelbonds/lumen-make) library. Added: * command for generate request (make:request) * providers for work with requests., (*2)

Installation

Just run the following in the root of your project, (*3)

> composer require smskin/lumen-make

Uncomment line in bootstrap/app.php, (*4)

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

Add line to bootstrap/app.php for enable generators, (*5)

//for enable generator permanently
$app->register(SMSkin\LumenMake\LumenMakeServiceProvider::class);

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

Add line to bootstrap/app.php for enable form requests, (*6)

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

Requests info

In generated requests used FormRequest from this library. If you want migrate to Laravel framework, change use line in all generated requests, (*7)

use SMSkin\LumenMake\Requests\FormRequest; 
\\to
use Illuminate\Foundation\Http\FormRequest;

Commands

  • make:job {name} - Makes a new job class in Jobs/
  • make:console {name} - Makes a new console command in Console/Commands/
  • make:controller {name} - Makes a new restful controller in Http/Controllers/
  • make:model {name} - Makes a new model in /
  • make:middleware {name} - Makes a new middleware class in Http/Middleware/
  • make:exception {name} - Makes a new exception class in Exceptions/
  • make:event {name} - Makes a new event class in Events/
  • make:request {name} - Makes a new request class in Http/Requests/

The Versions

08/02 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Sergey Mikhaylov

08/02 2017

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Sergey Mikhaylov