2017 © Pedro Peláez
 

library laravel-easy-generator

php artisan command to generate fully working crud with api resource by having database tables

image

hcomg/laravel-easy-generator

php artisan command to generate fully working crud with api resource by having database tables

  • Wednesday, August 23, 2017
  • by hcomg
  • Repository
  • 2 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Easy Generator

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

php artisan command to generate fully working crud with api resource by having database tables, (*2)

Features

1. Add api to routes.
2. Create resource controller with Dingo API.
3. Create model with Validator rules from Database.
4. ...

Requirements

Laravel >=5.1
PHP >= 5.5.9
dingo/api: 1.0.x@dev

Installation

Open your terminal(CLI), go to the root directory of your Laravel project, then follow the following procedure. 1. Install Through Composer bash composer require hcomg/laravel-easy-generator --dev, (*3)

  1. Add the Service Provider, (*4)

    Open /app/Providers/AppServiceProvider.php and, to your register function, add:, (*5)

    public function register()
    {
        if ($this->app->environment() !== 'production') {
            $this->app->register(\EasyGenerator\EasyGeneratorServiceProvider::class);
        }
    }
    
  2. Run php artisan help hcomg:gen to see all parameters

Examples

php artisan hcomg:gen --model=User --table=users --controller=User

Creating catalogue for table: users
Model Name: User
Created Controller: ./app/Models/User.php
Created Controller: ./app/Http/Controllers/UserController.php
Created Controller: ./app/Transformers/UserTransformer.php
Adding Route:     $api->resource('users', '\App\Http\Controllers\UserController');

Then run php artisan api:routes to see the api list., (*6)

The Versions

23/08 2017

dev-develop

dev-develop

php artisan command to generate fully working crud with api resource by having database tables

  Sources   Download

MIT

The Requires

 

by Avatar hcomg

20/05 2017

dev-master

9999999-dev

php artisan command to generate fully working crud with api resource by having database tables

  Sources   Download

MIT

The Requires

 

by Avatar hcomg

20/05 2017

v1.0.0

1.0.0.0

php artisan command to generate fully working crud with api resource by having database tables

  Sources   Download

MIT

The Requires

 

by Avatar hcomg