kikocorsentino/lumen-maker

Lumen Maker improves Lumen with controllers and models generator.

dev-master 2020-07-27 08:37 UTC

This package is not auto-updated.

Last update: 2025-02-02 06:14:03 UTC


README

Lumen Maker is built for porting some of the make commands from Laravel.

This package works well for 5.2.

Let me know if you have requests.

Installation

Just run the following in the root of your project

> composer require kikocorsentino/lumen-maker
// In bootstrap/app.php

/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
| Here we will register all of the application's service providers which {bla bla bla}
|
*/

//$app->register(App\Providers\AppServiceProvider::class);
//$app->register(App\Providers\EventServiceProvider::class);
$app->register(KikoCorsentino\LumenMaker\LumenMakerServiceProvider::class); // <- Add this

Commands

  • make:controller {name} - Makes a new restful controller in Http/Controllers/
  • make:model {name} - Makes a new model in App/