This package will make artisan commands available but in a domain driven folder structure

0.3.3 2022-02-13 15:00 UTC

This package is auto-updated.

Last update: 2024-11-13 20:50:04 UTC


README

Latest Version on Packagist License

PHP from Packagist Total Downloads

This packages makes it possible to use laravel artisan commands if you are using Laravel in a domain driven approach. We will still support every flag and option possible for the command by following the Laravel documentation. Since everyone is using their own way of Domain Driven Design the defaults are set to my structure but can be easily override using the config. Please check the config section for more information.

This package is also adding a lot of custom commands just to help you to develop Laravel in Domain Driven Approach

Installation

composer require --dev domain-driven-laravel/commands

Configuration

By default, we are following the domain driven approach of my choice. But to make this package usable for everyone we encourage you to publish the config and tweak this package the way you want to use domain driven design.

sail artisan vendor:publish --tag=ddd-commands

Default config

Config explanation is added inside the published ddd-commands.php file

App layer Commands:

If you are not using sail please replace "sail" with "php" in commands below

Domain Commands:

If you are not using sail please replace "sail" with "php" in commands below