2017 © Pedro PelĂĄez
 

library generator

Laravel Generator extends from Infyom Laravel Generator

image

germey/generator

Laravel Generator extends from Infyom Laravel Generator

  • Friday, January 20, 2017
  • by Germey
  • Repository
  • 1 Watchers
  • 2 Stars
  • 15 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Laravel Generator

Laravel Generator modified from Infyom Generator by Germey., (*1)

Introduction

Modified from Infyom. Because the former package generator the Non-elegant config file like config/infyom/laravel-generator.php, so this package changed it to config/generator.php., (*2)

Besides, this package changed the command name from infyom:command to generator:command., (*3)

Author

  • Mitul Golakiya me@mitul.me
  • Germey cqc@cuiqingcai.com

Installation

Add following packages into your composer.json., (*4)

"require": {
    "germey/generator": "~1.0",
    "laravelcollective/html": "^5.3.0",
    "doctrine/dbal": "~2.3"
}

If you want to generate a swagger annotations for your api documentation, you need to install following packages with it., (*5)

"require": {
    "infyomlabs/swagger-generator": "dev-master",
    "jlapp/swaggervel": "dev-master"
}

Add following service providers into your providers array in config/app.php., (*6)

Collective\Html\HtmlServiceProvider::class,
Laracasts\Flash\FlashServiceProvider::class,
Prettus\Repository\Providers\RepositoryServiceProvider::class,
Germey\Generator\GeneratorServiceProvider::class,

Add following alias to aliases array in config/app.php, (*7)

'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,
'Flash'     => Laracasts\Flash\Flash::class,

Run the following command:, (*8)

php artisan vendor:publish

Open app\Providers\RouteServiceProvider.php and update mapApiRoutes method as following:, (*9)

Route::group([
    'middleware' => 'api',
    'namespace' => $this->namespace."\\API",
    'prefix' => 'api',
    'as' => 'api.',
], function ($router) {
    require base_path('routes/api.php');
});     

We have added as prefix to separate out named routes of api and web. Also its a better way to store api controllers in separate directory with separate namespace. so we have added "\\API" suffix in namespace., (*10)

Commands Usage

The former docs: Infyom, (*11)

Commands have been changed from infyom:command to generator:command., (*12)

For example:, (*13)

php artisan infyom:rollback $MODEL_NAME $COMMAND_TYPE 

changed to, (*14)

php artisan generator:rollback $MODEL_NAME $COMMAND_TYPE 

Please remember replace all the infyom to generator., (*15)

The Versions

20/01 2017

dev-master

9999999-dev

Laravel Generator extends from Infyom Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

20/01 2017

v1.0.4

1.0.4.0

Laravel Generator extends from Infyom Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

20/01 2017

v1.0.3

1.0.3.0

Laravel Generator extends from Infyom Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

20/01 2017

v1.0.2

1.0.2.0

Laravel Generator extends from Infyom Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

20/01 2017

v1.0.1

1.0.1.0

Laravel Generator extends from Infyom Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

20/01 2017

v1.0.0

1.0.0.0

Laravel Generator extends from Infyom Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

19/01 2017

v0.9.2

0.9.2.0

Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

19/01 2017

v0.9.1

0.9.1.0

Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view

19/01 2017

v0.9.0

0.9.0.0

Laravel Generator

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mitul Golakiya

laravel repository api test crud generator migration model swagger request view