gsilva18 / laravel-dol-commands
Artisan commands to Laravel apps that utilizes Domain Oriented Laravel.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gsilva18/laravel-dol-commands
Requires
- php: ^8.0
- laravel/framework: ^7.0|^8.0
- spatie/data-transfer-object: ^3.7
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0
- phpunit/phpunit: ^7.0|^8.0|^9.0
README
It is heavily inspired by the DDD approach mentioned in this great article by Brent from Spatie. And with review code from (signifly/laravel-domain-commands)
Basic Usage
The package comes with a handful of commands out of the box.
Actions
Generate a new Action using the dol:action command:
php artisan dol:action CreateUserAction -d User
Controller
Generate a new Controller using the dol:controller command:
php artisan dol:controller UserController -d User -a Api (application dentro de exp: src/App/Api)
Publish config
php artisan vendor:publish --tag="dol-commands-config"