placetopay/self-declarations-base
最新稳定版本:v3.0.1
Composer 安装命令:
composer require placetopay/self-declarations-base
包简介
Manage layers in Laravel
README 文档
README
Base repository to manage layer in Laravel 5.5 to 5.7
To create files, on root from your project use
php vendor/freddiegar/base/src/Commands/create.php [NameModel] [options] [columns,names?]
By Example
php vendor/freddiegar/base/src/Commands/create.php User _ id,name,surname,email
This create in your project next files:
./app/Contracts/Repositories/UserRepository.php ./app/Entities/UserEntity.php ./app/Managers/UserManager.php ./app/Models/User.php ./app/Repositories/Eloquent/EloquentUserRepository.php
Also it will create folders if this not exists [Contracts,Entities,Managers,Models,Repositories]
Options
If you wanna to create only one file in specific, you can use next options (alias):
I [interface]
E [entity]
G [manager]
M [model]
R [repository]
D [datatable]
Q [request]
C [controller]
i [_info]
c [_create]
e [_edit]
f [_form]
x [_index]
w [_show]
a [_actions]
l [_lang]%
Options shortcuts
All types that you can use are here, additional, this are shorcuts:
_ <= underscore [IEGMR]
* <= asterisk [IEGMRDQCicefxwal];
统计信息
- 总下载量: 844
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-31