2017 © Pedro Peláez
 

library generator

Extend Laravel 5.5's generators scaffold.

image

summerblue/generator

Extend Laravel 5.5's generators scaffold.

  • Thursday, November 9, 2017
  • by summer_charlie
  • Repository
  • 8 Watchers
  • 191 Stars
  • 7,681 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 35 Forks
  • 6 Open issues
  • 21 Versions
  • 34 % Grown

The README.md

Laravel 5.x Scaffold Generator

Travis Packagist Tag, (*1)

Laravel Scaffold Generator, for Laravel 5.3., (*2)

Install

Step 1: Install Through Composer

9.x:, (*3)

composer require "summerblue/generator:9.*" --dev

8.x:, (*4)

composer require "summerblue/generator:8.*" --dev

7.x:, (*5)

composer require "summerblue/generator:7.*" --dev

6.x:, (*6)

composer require "summerblue/generator:6.*" --dev

5.1 ~ 5.5:, (*7)

composer require "summerblue/generator:~0.5" --dev

= 5.6 (Bootstrap4):, (*8)

composer require "summerblue/generator:~1.0" --dev

Step 2: Add the Service Provider

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

public function register()
{
     if (app()->environment() == 'local' || app()->environment() == 'testing') {

        $this->app->register(\Summerblue\Generator\GeneratorsServiceProvider::class);

    }
}

Step 3: Run Artisan!

You're all set. Run php artisan from the console, and you'll see the new commands make:scaffold., (*10)

Examples

Use this command to generator scaffolding of Project in your project:, (*11)

php artisan make:scaffold Projects --schema="name:string:index,description:text:nullable,subscriber_count:integer:unsigned:default(0)", (*12)

This command will generate:, (*13)

$ php artisan make:scaffold Projects --schema="name:string:index,description:text:nullable,subscriber_count:integer:unsigned:default(0)"


----------- scaffolding: Project -----------

+ ./database/migrations/2017_04_17_065656_create_projects_table.php
+ ./database/factories/ModelFactory.php
+ ./database/seeders/ProjectsTableSeeder.php
+ ./database/seeders/DatabaseSeeder.php (Updated)
x ./app/Models/Model.php (Skipped)
+ ./app/Models/Project.php
+ ./app/Http/Controllers/ProjectsController.php
x ./app/Http/Requests/Request.php (Skipped)
+ ./app/Http/Requests/ProjectRequest.php
+ ./app/Observers/ProjectObserver.php
+ ./app/Providers/AppServiceProvider.php (Updated)
x ./app/Policies/Policy.php
+ ./app/Policies/ProjectPolicy.php
+ ./app/Providers/AuthServiceProvider.php (Updated)
+ ./routes/web.php (Updated)

--- Views ---
   + create_and_edit.blade.php
   + index.blade.php
   + show.blade.php
x ./resources/views/error.blade.php
Migrated: 2017_04_17_065656_create_projects_table

----------- -------------------- -----------
-----------   >DUMP AUTOLOAD<    -----------

Explain

Generate the following:, (*14)

  • Migration
  • Seed, add ModelFactory entry, and DatabaseSeeder entry
  • Base Model class, Model and helper trait
  • Resource Controller
  • Base FormRequest class and StoreRequest, UpdateRequest
  • Policy and Policy base class, auto register AuthServiceProvider class
  • Update routes file to register resource route
  • Add error page view
  • Create and Edit action share the same view

Future Plan

  • API
  • Admin
  • Auto fill FormRequest rule
  • Auto fill ModelFactory filed

Screenshot

file, (*15)

Thanks to

The Versions

09/11 2017

dev-master

9999999-dev

Extend Laravel 5.5's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

09/11 2017

0.6.0

0.6.0.0

Extend Laravel 5.5's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

18/09 2017

0.5.9

0.5.9.0

Extend Laravel 5.5's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

23/05 2017

0.5.7

0.5.7.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

23/05 2017

0.5.8

0.5.8.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

17/04 2017

0.5.6

0.5.6.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

17/04 2017

0.5.5

0.5.5.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

17/04 2017

0.5.4

0.5.4.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

17/04 2017

0.5.3

0.5.3.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

17/04 2017

0.5.2

0.5.2.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

16/04 2017

0.5.1

0.5.1.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

26/02 2017

0.5.0

0.5.0.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

20/02 2017

0.4.4

0.4.4.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

02/02 2017

0.4.3

0.4.3.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

02/02 2017

0.4.2

0.4.2.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

02/02 2017

0.4.1

0.4.1.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

02/02 2017

0.4.0

0.4.0.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

31/01 2017

0.2.1

0.2.1.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

31/01 2017

0.3

0.3.0.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

31/01 2017

0.2

0.2.0.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5

31/01 2017

0.1

0.1.0.0

Extend Laravel 5.3's generators scaffold.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fernando Brito
by Summer

laravel generators scaffold laravel5