2017 © Pedro Peláez
 

library l5scaffold

Extend Laravel 5's generators scaffold. Thanks to the base of this laralib by fernandobritofl@gmail.com!

image

alnutile/l5scaffold

Extend Laravel 5's generators scaffold. Thanks to the base of this laralib by fernandobritofl@gmail.com!

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 126 Forks
  • 8 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Laravel 5 Scaffold Generator

See Tag 1.0.3 for Laravel 5.1, (*1)

This is a scaffold generator for Laravel 5.2, (*2)

Usage

Step 1: Install Through Composer

Setup your composer.json, (*3)

  "require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/alnutile/l5scaffold.git"
    }
  ],

You might have to set, (*4)

"minimum-stability": "dev"

At the bottom of your composer.json, (*5)

then, (*6)

composer require "laralib/l5scaffold":"dev-master"

Step 2: Add the Service Provider

Since we only want this on dev go to app/Providers/AppServiceProvider.php, (*7)

    public function register()
    {

        if ($this->app->environment() == 'local') {
            $this->app->register('Laralib\L5scaffold\GeneratorsServiceProvider');
        }
    }
}

Step 3: Run Artisan!

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

Examples

php artisan make:scaffold Tweet --schema="title:string:default('Tweet #1'), body:text"

This command will generate:, (*9)

app/Tweet.php
app/Http/Controllers/TweetController.php
database/migrations/2015_04_23_234422_create_tweets_table.php
database/seeds/TweetTableSeeder.php
resources/views/layout.blade.php
resources/views/tweets/index.blade.php
resources/views/tweets/show.blade.php
resources/views/tweets/edit.blade.php
resources/views/tweets/create.blade.php

And don't forget to run:, (*10)

php artisan migrate

Scaffold

image image image, (*11)

The Versions

10/04 2016

dev-master

9999999-dev

Extend Laravel 5's generators scaffold. Thanks to the base of this laralib by fernandobritofl@gmail.com!

  Sources   Download

MIT

The Requires

 

laravel generators scaffold laravel5

18/01 2016

1.0.3

1.0.3.0

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5

01/07 2015

dev-patch-3

dev-patch-3

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5

26/06 2015

dev-patch-2

dev-patch-2

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5

26/06 2015

dev-patch-1

dev-patch-1

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5

29/04 2015

1.0.2

1.0.2.0

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5

24/04 2015

1.0.1

1.0.1.0

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5

23/04 2015

1.0

1.0.0.0

Extend Laravel 5's generators scaffold.

  Sources   Download

MIT

The Requires

 

by Fernando Brito

laravel generators scaffold laravel5