Initiating Project, (*1)
php artisan init:project <project-name>
, (*2)
Module creation, (*3)
php artisan make:module
* Then you need to specify the root directory
* Ex: Root<module-name>, (*4)
Command creation, (*5)
php artisan make:cqrs:command <command-name>
* As a convention, append Command postfix end of every command (Ex: SampleCommand), (*6)
Command Handler creation, (*7)
php artisan make:cqrs:command-handler <command-handler-name>
* As a convention, append CommandHandler postfix end of every command handler(Ex: SampleCommandHandler), (*8)
Query creation, (*9)
php artisan make:cqrs:query <cquery-name>
, (*10)
- As a convention, append Query postfix end of every query (Ex: SampleQuery)
Query handler creation, (*11)
php artisan make:cqrs:query-handler <query-handler-name>
, (*12)
- As a convention, append QueryHandler postfix end of every query handler (Ex: SampleQueryHandler)
Repository creation, (*13)
php artisan make:repository <repository-name>
, (*14)
- As a convention, append Repository postfix end of every repository (Ex: SampleRepository)