Package Data | |
---|---|
Maintainer Username: | bluecode |
Package Create Date: | 2015-11-19 |
Package Last Update: | 2017-09-16 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:10:08 |
Package Statistics | |
---|---|
Total Downloads: | 469 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 16 |
Total Watchers: | 7 |
Total Forks: | 7 |
Total Open Issues: | 0 |
This package extend make laravel command to use custom template. Further more, add some new command as generate mvc, create new package.
composer require bluecode/laravel-generator
composer update
config/app.php
Bluecode\Generator\GeneratorServiceProvider::class,
As we are using laravelcollective/htmlas a dependency so we need to add those ServiceProviders as well.
Collective\Html\HtmlServiceProvider::class,
Also for convenience, add these facades in alias array in config/app.php
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
generator.php
php artisan vendor:publish --tag=laravel-generator.config
resources/vendor/laravel-generator/templates
php artisan vendor:publish --tag=laravel-generator.template
php artisan gen:migrate MigrationName
e.g.
php artisan gen:migrate create_posts_table
php artisan gen:model ModelName
e.g.
php artisan gen:model Post
php artisan gen:model ModelName
e.g.
php artisan gen:model Post
php artisan gen:view ViewName
e.g.
php artisan gen:view index
php artisan gen:view create
php artisan gen:mvc ModelName
e.g.
php artisan gen:mvc Post
php artisan gen:mvc Post --actions=index,create,edit
php artisan gen:package VendorName PackageName
e.g.
php artisan gen:package Module Post
php artisan gen:package Module Post --path=packages/post
php artisan gen:package Module Post --actions=index,create,edit
Use --overwrite to overwrite exist file on all command.
This Laravel Generator is created by Bluecode.
Bugs & Forks are welcomed :)