rlimjr/lara-clean
最新稳定版本:1.0.0
Composer 安装命令:
composer require rlimjr/lara-clean
包简介
A Laravel package for domain migrations.
README 文档
README
Description
LaraClean is a Laravel package designed to facilitate domain-driven design (DDD) principles in your application. It provides a set of console commands to help you create and manage your domain models, DTOs, and migrations in a structured and organized way.
Usage
Installation
To install LaraClean, run the following command in your terminal:
composer require rlimjr/lara-clean
Available Commands
LaraClean provides the following console commands:
make:domain: Create a new domain modelmake:domain-dto: Create a new DTO (Data Transfer Object)make:domain-migration: Create a new migration for a domain model
Command Options
--domain: Specify the domain name (required)--name: Specify the model or DTO name (required)--path: Specify the path to the domain directory (optional)
Examples
- Create a new domain model:
php artisan make:domain Question
- Create a new DTO:
php artisan make:dto Question Question
- Create a new migration for a domain model:
php artisan make:domain-migration Question Choices<optional>
Directory Structure
LaraClean assumes the following directory structure for your domain models and DTOs:
app/
Domain/
{domain-name}/
Models/
{model-name}.php
DTOs/
{dto-name}.php
Migrations/
{migration-name}.php
统计信息
- 总下载量: 281
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-10-28