stdio / stdio-template
此包最新版本(dev-master)没有可用的许可证信息。
STDIO的模板Laravel
dev-master
2022-04-08 12:38 UTC
This package is auto-updated.
Last update: 2024-09-11 20:48:28 UTC
README
要开始使用基础STDIO模板:仓库,DTO(数据传输对象),助手,使用Composer将包添加到项目的依赖项中
仓库
基本用法
接下来,您已准备好使用仓库。如果您想要创建与模型对应的仓库(例如:UserRepository),运行命令行
php artisan make:repository UserRepository
它将创建UserRepository + UserInterface。
之后,运行脚本以创建StdioAppServiceProvider.php,并且您仍需要在您的实际StdioAppServiceProvider.php中绑定其实际仓库的接口。
php artisan vendor:publish --tag=stdio-service-provider
DTO
基本用法
接下来,您已准备好使用DTO。如果您想要创建与模型对应的DTO(例如:UserDTO)
php artisan make:DTO DTORepository
STDIO助手
CollectionStdio
基本用法
这是自定义的Laravel集合。
php artisan vendor:publish --tag=stdio-helper