Skip to content

Command options

Usage:

php artisan make:event-sourcing-domain <model> [options]

Arguments

  • model: The name of the model (required)

Options

Option Shortcut Default Description
--domain -d - The name of the domain
--namespace - Domain The namespace or root folder
--migration -m - Indicate any existing migration for the model, with or without timestamp prefix. Table name is sufficient
--migration-exclude - - Indicate any existing migration for the model, that must be excluded. It accepts regex. Table name is sufficient
--aggregate -a - Indicate if aggregate must be created or not (accepts 0 or 1)
--reactor -r - Indicate if reactor must be created or not (accepts 0 or 1)
--unit-test -u flag Indicate if PHPUnit tests must be created
--primary-key -p - Indicate which is the primary key (uuid, id)
--indentation - 4 Indentation spaces
--failed-events - 0 Indicate if failed events must be created (accepts 0 or 1)
--notifications - no Indicate if notifications must be created, comma separated (accepts database,mail,no,slack,teams)
--root - app The name of the root folder