2017 © Pedro Peláez
 

library laravel-generator

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

image

maztch/laravel-generator

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

  • Tuesday, March 15, 2016
  • by maztch
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Laravel5 Generator (Laravel5.2)

Other versions:, (*1)

5.1.* | 1.0, (*2)

Based on Mitul generator, this is a more simple scaffold and just need to be used in dev., (*3)

I did this beacuse i need more simple generator and keep all out the repo dependencies in production., (*4)

Diferences with Mitul:, (*5)

There are no Requests and there are no Library/Repositories Base controller is removed (Maztch/Controller/AppBaseController) Added delete function in controller for DELETE method and keep destroy just as an alias., (*6)

Except for this, is exactly the same., (*7)

The artisan command can generate the following items: * Migration File * Model * Controller * View * index.blade.php * table.blade.php * show.blade.php * show_fields.blade.php * create.blade.php * edit.blade.php * fields.blade.php * adjusts routes.php, (*8)

Documentation is in process...

Documentation

While we write the docs you can take a look to Mitul repo., (*9)

Installation

  1. Add this package to your composer.json:, (*10)

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/mitulgolakiya/laracast-flash"
        }
    ],
    "require": {
        "laracasts/flash": "dev-master",
        "laravelcollective/html": "5.2.*@dev",
        "bosnadev/repositories": "dev-master",
        "maztch/laravel-generator": "dev-master"
    }
  2. Run composer update, (*11)

    composer update
  3. Add the ServiceProviders to the providers array in config/app.php., (*12)

As we are using these two packages laravelcollective/html & laracasts/flash as a dependency., (*13)

So we need to add those ServiceProviders as well., (*14)

    Collective\Html\HtmlServiceProvider::class,
    Laracasts\Flash\FlashServiceProvider::class,
    Maztch\Generator\GeneratorServiceProvider::class,

Also for convenience, add these facades in alias array in config/app.php., (*15)

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

Configuration

Publish Configuration file generator.php., (*16)

    php artisan vendor:publish --provider="Maztch\Generator\GeneratorServiceProvider"

Publish & Initialization

Mainly, we need to do three basic things to get started., (*17)

  1. Publish some common views like errors.blade.php & paginate.blade.php.
  2. Publish api_routes.php which will contain all our api routes.
  3. Init routes.php for api routes. We need to include api_routes.php into main routes.php., (*18)

    php artisan maztch.generator:publish

The Versions

15/03 2016

dev-develop

dev-develop

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

  Sources   Download

MIT

The Requires

 

by Avatar maztch

laravel api crud generator migration model scaffold

22/01 2016

dev-master

9999999-dev

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

  Sources   Download

MIT

The Requires

 

by Avatar maztch

laravel api crud generator migration model scaffold

22/01 2016

v1.1

1.1.0.0

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

  Sources   Download

MIT

The Requires

 

by Avatar maztch

laravel api crud generator migration model scaffold

12/11 2015

1.0.x-dev

1.0.9999999.9999999-dev

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

  Sources   Download

MIT

The Requires

 

by Avatar maztch

laravel api crud generator migration model scaffold

12/11 2015

v1.0

1.0.0.0

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

  Sources   Download

MIT

The Requires

 

by Avatar maztch

laravel api crud generator migration model scaffold