| Package Data | |
|---|---|
| Maintainer Username: | pelletiermaxime | 
| Maintainer Contact: | pelletiermaxime@gmail.com (Maxime Pelletier) | 
| Package Create Date: | 2015-12-25 | 
| Package Last Update: | 2016-02-21 | 
| Language: | CSS | 
| License: | MIT | 
| Last Refreshed: | 2025-10-31 03:05:18 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 7 | 
| Monthly Downloads: | 0 | 
| Daily Downloads: | 0 | 
| Total Stars: | 1 | 
| Total Watchers: | 1 | 
| Total Forks: | 0 | 
| Total Open Issues: | 0 | 
Via Composer
$ composer require pelletiermaxime/laravel-scaffold-admin
$ php artisan vendor:publish
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:
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.
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:
php artisan scaffold-admin:controller Posts
will generate the file app/Http/Controllers/Admin/PostsController.php with a PostsController class.
php artisan scaffold-admin:controller Posts --controller-name=Posts
will generate the file app/Http/Controllers/Admin/Posts.php with a Posts class.
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.
Examples:
php artisan scaffold-admin:migration create_posts_table --fields="name:string"
php artisan scaffold-admin:model       Scaffold a model class.
name : Name of the model
Examples:
php scaffold-admin:model Posts
php artisan scaffold-admin:view        Scaffold the views for a model
name : Name of the view
Examples:
php artisan scaffold-admin:view posts
will generate the file resources/views/admin/posts/index.blade.php and all the layout files for AdminLTE.
Don't forget to publish the assets (php artisan vendor:publish) to publish all the css/js necessary for AdminLTE.
Please see CHANGELOG for more information what has changed recently.
Thanks to the following packages for the inspiration :
https://github.com/laracasts/Laravel-5-Generators-Extended https://github.com/acacha/adminlte-laravel/
The MIT License (MIT). Please see License File for more information.