This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel 5 scaffold with bootstrap 3 template

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Type:laravel-scaffold

dev-master 2016-06-30 13:30 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:59:29 UTC


README

Hi, this is a scaffold generator for Laravel 5.2 with bootstrap 3 template.

Forked amcysoft/scaffold

Usage

Step 1: Install Through Composer

composer require 'tisstech-brasil/scaffold' "dev-master"

Step 2: Add the Service Provider

Open config/app.php and the following to your providers array, add:

TisstechBrasil\Scaffold\ScaffoldServiceProvider::class,

Step 3: Run Artisan!

You're now able to run artisan command. Run php artisan from the console, and you'll see the new commands make:scaffold. But before doing this, run the following command to make the setup.

php artisan make:auth

Examples

php artisan make:scaffold Article title:string description:text

This command will generate:

database/migrations/2016_06_18_171537_create_articles_table.php
app/Http/Controllers/ArticlesController.php
app/Models/Article.php
resources/views/articles/create.blade.php
resources/views/articles/edit.blade.php
resources/views/articles/form.blade.php
resources/views/articles/index.blade.php
resources/views/articles/show.blade.php
database/seeds/ArticlesTableSeeder.php

This scaffolding will automatically add route to routes.php file, run the migration, and seeds the data.

Rollback Scaffold

You can also rollback your scaffolding by the following command.

php artisan remove:scaffold Article

This will reverse all the process generated by scaffold:make command.