A Laravel Package Generator. This is the extended and specialised version of https://github.com/melihovv/laravel-package-generator
Install via composer
composer require --dev wovosoft/crud
Publish package config if you want customize default values
php artisan vendor:publish --provider="Wovosoft\Crud\ServiceProvider" --tag="config"
php artisan crud:make_package {vendor} {package}
\
or, with inraction\php artisan crud:make_package -i
Example: php artisan crud:make_package Wovosoft SomeAwesomePackage
This command will:
packages/wovosoft/some-awesome-package
folder git init packages/wovosoft/some-awesome-package
composer update wovosoft/some-awesome-package
composer dump-autoload
With interactive -i
flag you will be prompted for every needed value from you.
php artisan crud:remove_package {vendor} {package}
Example: php artisan crud:remove_package Wovosoft SomeAwesomePackage
This command will:
composer remove wovosoft/some-awesome-package
packages/wovosoft/some-awesome-package
folder composer dump-autoload
Interactive mode also possible.
php artisan crud:make_controller {vendor} {package} {controller} {model}
\
php artisan crud:make_controller -i
php artisan crud:remove_controller {vendor} {package} {controller}
php artisan crud:remove_controller -i
php artisan crud:make_model {vendor} {package} {model}
php artisan crud:make_model -i
php artisan crud:remove_model {vendor} {package} {model}
php artisan crud:remove_model -i
There is a Console Application available. To run all above Artisan Commands from a single terminal with less commands, please run
php artisan crud -i
orphp artisan crud
. Then you can see the all available commands in a multiple choice form. Just select an option and that command will start executing immediately in interaction mode. You can then follow the rest of the ongoing processes.
This package will copy all folders and files from specified skeleton path to package folder. You can use templates in your skeleton. All files with
tpl
extension will be provided with some variables available to use in them.tpl
extension will be stripped.
If you discover any security related issues, please email narayanadhikary24@gmail.com Or, create an issue in this github repository.