├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── README.md ├── app └── Providers │ └── AppServiceProvider.php ├── artisan ├── bootstrap ├── app.php ├── cache │ └── .gitignore └── providers.php ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── cache.php ├── data.php ├── database.php ├── filesystems.php ├── logging.php ├── mail.php ├── queue.php ├── sanctum.php ├── services.php └── session.php ├── database ├── .gitignore ├── migrations │ ├── 0001_01_01_000000_create_users_table.php │ ├── 0001_01_01_000001_create_cache_table.php │ ├── 0001_01_01_000002_create_jobs_table.php │ └── 2024_05_23_183818_create_personal_access_tokens_table.php └── seeders │ └── DatabaseSeeder.php ├── docker-compose.yml ├── package.json ├── phpstan.neon ├── phpunit.xml ├── pint.json ├── public ├── .htaccess ├── favicon.ico ├── index.php └── robots.txt ├── rector.php ├── resources ├── css │ └── app.css ├── js │ ├── app.js │ └── bootstrap.js └── views │ └── welcome.blade.php ├── routes └── console.php ├── src ├── Application │ ├── Bus │ │ ├── Command.php │ │ ├── CommandHandler.php │ │ ├── Contracts │ │ │ ├── CommandBusContract.php │ │ │ └── QueryBusContract.php │ │ ├── IlluminateCommandBus.php │ │ ├── IlluminateQueryBus.php │ │ ├── Query.php │ │ └── QueryHandler.php │ ├── Providers │ │ └── ApplicationServiceProvider.php │ └── User │ │ ├── CommandHandlers │ │ └── CreateUserCommandHandler.php │ │ ├── Commands │ │ └── CreateUserCommand.php │ │ ├── Contracts │ │ └── UserServiceContract.php │ │ ├── Data │ │ ├── UserData.php │ │ └── UsersListData.php │ │ ├── Queries │ │ ├── GetUserByEmailQuery.php │ │ ├── GetUserByEmailQueryHandler.php │ │ ├── GetUserByIdQuery.php │ │ └── GetUserByIdQueryHandler.php │ │ └── Services │ │ └── UserService.php ├── Domain │ ├── Common │ │ ├── Enums │ │ │ └── .gitkeep │ │ └── Traits │ │ │ └── EnumValues.php │ ├── Providers │ │ └── DomainServiceProvider.php │ └── User │ │ ├── Entities │ │ └── User.php │ │ ├── Enums │ │ └── UserStatus.php │ │ ├── Events │ │ └── .gitkeep │ │ ├── Exceptions │ │ └── UserNotFoundException.php │ │ ├── Factories │ │ └── UserFactory.php │ │ ├── Observers │ │ └── UserObserver.php │ │ ├── Polices │ │ └── .gitkeep │ │ └── Repositories │ │ └── UserRepositoryContract.php ├── Infrastructure │ ├── Providers │ │ └── InfrastructureServiceProvider.php │ └── User │ │ ├── Jobs │ │ └── .gitkeep │ │ ├── Notifications │ │ └── .gitkeep │ │ └── Persistence │ │ └── Repositories │ │ └── UserRepository.php └── Presentation │ ├── Controller.php │ └── UserManagement │ ├── Controllers │ └── UserController.php │ ├── Middlewares │ └── .gitkeep │ ├── Requests │ └── UserFormRequest.php │ ├── Resources │ └── .gitkeep │ └── routes │ ├── api.php │ └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── Architecture │ ├── GlobalsTest.php │ └── Shared │ │ ├── ContractsTest.php │ │ ├── EnumsTest.php │ │ └── TraitsTest.php ├── Feature │ ├── ExampleTest.php │ └── UserTest.php ├── Pest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/README.md -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/app/Providers/AppServiceProvider.php -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/artisan -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/bootstrap/app.php -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /bootstrap/providers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/bootstrap/providers.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/composer.lock -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/app.php -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/auth.php -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/cache.php -------------------------------------------------------------------------------- /config/data.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/data.php -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/database.php -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/filesystems.php -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/logging.php -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/mail.php -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/queue.php -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/sanctum.php -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/services.php -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/config/session.php -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000000_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/database/migrations/0001_01_01_000000_create_users_table.php -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000001_create_cache_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/database/migrations/0001_01_01_000001_create_cache_table.php -------------------------------------------------------------------------------- /database/migrations/0001_01_01_000002_create_jobs_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/database/migrations/0001_01_01_000002_create_jobs_table.php -------------------------------------------------------------------------------- /database/migrations/2024_05_23_183818_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/database/migrations/2024_05_23_183818_create_personal_access_tokens_table.php -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/database/seeders/DatabaseSeeder.php -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/package.json -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/phpunit.xml -------------------------------------------------------------------------------- /pint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/pint.json -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/public/.htaccess -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/public/index.php -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /rector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/rector.php -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import './bootstrap'; 2 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/resources/js/bootstrap.js -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/resources/views/welcome.blade.php -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shahghasiadil/laravel-clean-architecture-ddd-cqrs/HEAD/routes/console.php -------------------------------------------------------------------------------- /src/Application/Bus/Command.php: -------------------------------------------------------------------------------- 1 |