Skip to content

SHIFTECH-AFRICA/lumen-take-off

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumen Take Off

packagist-badge Total Downloads

Description

A package built for lumen that ports most of the make commands from laravel.

##Info Added:

  • command for generate request (make:request)
  • providers for work with requests.

Installation

Just run the following in the root of your project

composer require shiftechafrica/lumen-take-off

Uncomment line in bootstrap/app.php

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

Add line to bootstrap/app.php for enable generators

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

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

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

$app->register(ShiftechAfrica\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

use ShiftechAfrica\Requests\LumenFormRequest; 
\\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/
##### And much more...

About

Lumen take off is a package for Lumen that lets developer validate form requests like Laravel does and also make some of the artisan commands .

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages