diff --git a/README.md b/README.md index 58c1461..d33b254 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ In production, you should cache the autoload manifests using the `ddd:cache` com This is the content of the published config file (`ddd.php`): ```php + return [ /* @@ -290,9 +291,28 @@ return [ | */ 'autoload' => [ + /** + * When enabled, any class within the domain layer extending `Illuminate\Support\ServiceProvider` + * will be auto-registered as a service provider + */ 'providers' => true, + + /** + * When enabled, any class within the domain layer extending `Illuminate\Console\Command` + * will be auto-registered as a command when running in console. + */ 'commands' => true, + + /** + * When enabled, the package will register a custom policy discovery callback to resolve policy names + * for domain models, and fallback to Laravel's default for all other cases. + */ 'policies' => true, + + /** + * When enabled, the package will register a custom factory discovery callback to resolve factory names + * for domain models, and fallback to Laravel's default for all other cases. + */ 'factories' => true, ], @@ -305,7 +325,7 @@ return [ | autoloading. | */ - 'cache_directory' => 'bootstrap/cache', + 'cache_directory' => 'bootstrap/cache/ddd', ]; ```