2017 © Pedro Peláez
 

library laravel-generator

Laravel Generator

image

bluecode/laravel-generator

Laravel Generator

  • Saturday, September 16, 2017
  • by Bluecode
  • Repository
  • 6 Watchers
  • 15 Stars
  • 410 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Laravel Resource Generator (Laravel5.4)

Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This package extend make laravel command to use custom template. Further more, add some new command as generate mvc, create new package., (*2)

Documentation is in process...

Documentation

  1. Installation
  2. Publish
  3. Generator Command
  4. Option

Installation

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

    composer require bluecode/laravel-generator
    
  2. Run composer update, (*4)

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

    Bluecode\Generator\GeneratorServiceProvider::class,
    

    As we are using laravelcollective/htmlas a dependency
    so we need to add those ServiceProviders as well., (*6)

    Collective\Html\HtmlServiceProvider::class,
    

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

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

Publish

  1. Publish configuration file generator.php, (*8)

    php artisan vendor:publish --tag=laravel-generator.config
    
  2. Publish template folder into resources/vendor/laravel-generator/templates, (*9)

    php artisan vendor:publish --tag=laravel-generator.template
    

Generator Command

  1. Generate Migration:, (*10)

    php artisan gen:migrate MigrationName
    

e.g., (*11)

bash php artisan gen:migrate create_posts_table, (*12)

  1. Generate Model:, (*13)

    php artisan gen:model ModelName, (*14)

e.g., (*15)

bash php artisan gen:model Post, (*16)

  1. Generate Controller, (*17)

    php artisan gen:model ModelName
    

e.g., (*18)

bash php artisan gen:model Post, (*19)

  1. Generate View, (*20)

    php artisan gen:view ViewName
    

e.g., (*21)

bash php artisan gen:view index php artisan gen:view create, (*22)

  1. Generate MVC:, (*23)

    php artisan gen:mvc ModelName
    

e.g. bash php artisan gen:mvc Post php artisan gen:mvc Post --actions=index,create,edit, (*24)

  1. Generate Package

bash php artisan gen:package VendorName PackageName, (*25)

e.g. bash php artisan gen:package Module Post php artisan gen:package Module Post --path=packages/post php artisan gen:package Module Post --actions=index,create,edit, (*26)

Option

Use --overwrite to overwrite exist file on all command., (*27)

Credits

This Laravel Generator is created by Bluecode., (*28)

Bugs & Forks are welcomed :), (*29)

The Versions

16/09 2017

dev-master

9999999-dev

Laravel Generator

  Sources   Download

MIT

The Requires

 

by Avatar Bluecode

laravel mvc crud generator migration model scaffold

16/09 2017

dev-develop

dev-develop

Laravel Generator

  Sources   Download

MIT

The Requires

 

by Avatar Bluecode

laravel mvc crud generator migration model scaffold

01/09 2017

dev-bitflow

dev-bitflow

Laravel CRUD Generator/Model/Migrate from just one command with including Controller, Service, Repository, Model, Migrations, routes.php update.

  Sources   Download

MIT

The Requires

 

by Avatar Bluecode

laravel crud generator migration model scaffold