Skip to content

Custom command to scaffold an admin structure from a list of resources

License

Notifications You must be signed in to change notification settings

sudobat/laravel-admin-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Admin Generator

This Laravel package provides a simple and fast way to generate an admin skeleton.

Installation

Edit your composer.json to add this package

"require-dev": {
	"sudobat/admin-generator": "dev-master"
}

Then update Composer from the Terminal, run the following command on the root of your project:

composer update --dev

When composer is done, add this provider to your providers list in app/config/app.php

'Sudobat\AdminGenerator\AdminGeneratorServiceProvider'

If all the above went ok, you should see a new command admin:make when you run

php artisan

Usage

php artisan admin:make --resources="..." [--base[="..."]] [--prefix[="..."]] [--namespace[="..."]]

Here is an explanation of the options one by one

--resources

This is a list of the resources you want to create separated by commas

--base

This is the path where the folder structure will be created ("app" by default)

--prefix

This is a sub-folder that will be created inside "controllers, models, views" directories ("admin" by default)

--namespace

This is the namespace under which all the controllers and models will be created ("" by default)

About

Custom command to scaffold an admin structure from a list of resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages