leinbg / make-package
artisan command make package with basic scaffolding
0.1.2
2017-05-11 08:31 UTC
Requires
- illuminate/console: ~5.4
- illuminate/support: ~5.4
This package is not auto-updated.
Last update: 2025-05-11 05:59:00 UTC
README
create laravel package scaffolder
how to use
- add command service provider to app config
Leinbg\Command\MakePackage\Providers\ConsoleServiceProvider::class,
- create package
php artisan make:package vendor package
- add autoload in composer.json
"Vendor\\Package\\": "packages/vendor/package/src"
composer dumpautoload
- register service provider in app config
Vendor\Package\Providers\PackageServiceProvider::class,
- migrate | publish if neccessery
todos
- vendor and package camelcase
- add more options
- --default
- --resource
- --web
- --cli
default package structure
- database
- migrations
- resources
- views
- routes
- src
- Http
- Controllers
- Requests
- Models
- Providers
- Http
- composer.json