2017 © Pedro Peláez
 

library laravel-scaffold-admin

Commands to generate scaffolding for an admin CRUD.

image

pelletiermaxime/laravel-scaffold-admin

Commands to generate scaffolding for an admin CRUD.

  • Sunday, February 21, 2016
  • by pelletiermaxime
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

:package_name

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Installation

Via Composer, (*2)

$ composer require pelletiermaxime/laravel-scaffold-admin
$ php artisan vendor:publish

Usage

Scaffold everything (migration, model, controller, routes and views)

php artisan scaffold-admin:generate  Scaffold an admin CRUD

name : Name of the model
--fields= : Comma-separated list of fields in the format COLUMN_NAME:COLUMN_TYPE.

Examples:, (*3)

php artisan scaffold-admin:generate Posts

will generate the file app/Http/Controllers/Admin/PostsController.php with a PostsController class, generate a route for /admin/posts in routes.php, generate an empty model Posts, generate a migration file with the default values (an ID and the timestamp fields) and generate CRUD views., (*4)

Scaffold a Controller

php artisan scaffold-admin:controller  Scaffold an admin controller for a model

name : Name of the associated model
--controller-name=$modelController : Controller name. Defaults to name of the model followed by Controller
--no-route : Disable the default route appended to your routes.php file.

Examples:, (*5)

php artisan scaffold-admin:controller Posts

will generate the file app/Http/Controllers/Admin/PostsController.php with a PostsController class., (*6)

php artisan scaffold-admin:controller Posts --controller-name=Posts

will generate the file app/Http/Controllers/Admin/Posts.php with a Posts class., (*7)

Scaffold a Migration file

php artisan scaffold-admin:migration   Scaffold a migration file.

name : Name of the migration
--fields= : Comma-separated list of fields in the format COLUMN_NAME:COLUMN_TYPE.

Behind the scene this command uses the great package laracasts/generators. Have a look at the documentation for detailed examples., (*8)

Examples:, (*9)

php artisan scaffold-admin:migration create_posts_table --fields="name:string"

Scaffold a Model file

php artisan scaffold-admin:model       Scaffold a model class.

name : Name of the model

Examples:, (*10)

php scaffold-admin:model Posts

Scaffold a View file

php artisan scaffold-admin:view        Scaffold the views for a model

name : Name of the view

Examples:, (*11)

php artisan scaffold-admin:view posts

will generate the file resources/views/admin/posts/index.blade.php and all the layout files for AdminLTE., (*12)

Don't forget to publish the assets (php artisan vendor:publish) to publish all the css/js necessary for AdminLTE., (*13)

Change log

Please see CHANGELOG for more information what has changed recently., (*14)

Credits

Thanks to the following packages for the inspiration :, (*15)

https://github.com/laracasts/Laravel-5-Generators-Extended https://github.com/acacha/adminlte-laravel/, (*16)

License

The MIT License (MIT). Please see License File for more information., (*17)

The Versions

21/02 2016

dev-dynamic_menu

dev-dynamic_menu https://github.com/pelletiermaxime/laravel-scaffold-admin

Commands to generate scaffolding for an admin CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxime Pelletier

laravel admin scaffolding

21/02 2016

dev-master

9999999-dev https://github.com/pelletiermaxime/laravel-scaffold-admin

Commands to generate scaffolding for an admin CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxime Pelletier

laravel admin scaffolding

16/02 2016