Diamond Console is an Artisan command package to handle your Domain Driven Design project that is suitable with Laravel base structures, made for comer of Domain Driven Design and advanced. Install Diamond Console with composer composer require koalafacade/diamond-console then after Diamond Console is installed run the command below to set up your project. The command below will generate a namespace in composer and base directory structures.
Command for generate a Data Transfer Object with plain PHP to your domain directory.
Command for generate a Factory class, this command would generate two files : Factory concrete at Infrastructure/{DomainName}/Database/Factories