unisharp / laravel-unifly
它可以根据arca原则生成实体
dev-master
2017-04-27 10:46 UTC
Requires
- php: >=5.4.0
- illuminate/support: >=5.0.0
- unisharp/laravel-datacarrier: dev-master
- unisharp/laravel-fileapi: dev-master
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is auto-updated.
Last update: 2024-09-15 16:11:25 UTC
README
介绍
它包含 artisan make:entity 命令,这将使unisharp即时工作
安装数据载体
composer.json
"require" : {
"unisharp/laravel-unifly" : "dev-master"
},
"repositories": {
"type": "git",
"url": "git@bitbucket.org:unisharp/laravel-unifly.git"
}
保存它,然后
composer update unisharp/laravel-unifly
设置 ServiceProvider 和 Set Facade
在 config/app.php 中
-
ServiceProfider
Unisharp\Unifly\UniflyServiceProvider::class,
用法
-
主要命令
php artisan make:entity XXX
它将生成XXX实体以及与其他视图、仓库一起工作的其他视图
-
具有可翻译性
php artisan make:entity XXX --translatable