frebato/gucci
Composer 安装命令:
composer require frebato/gucci
包简介
facilitates the implementation of an automated back office
README 文档
README
Préambule
nano ~/.bashrc
alias sail='bash vendor/bin/sail'
source ~/.bashrc
Gucci
Installation
Add Gucci to your composer.json file :
sudo chown -R $(whoami):$(whoami) . && chmod -R 755 .
sail shell
composer require frebato/gucci:dev-master -W
Update Composer :
composer update
composer dump-autoload
The next required step is to add the service provider to config/app.php :
Frebato\Gucci\ServiceProvider::class,
Lab404\Impersonate\ImpersonateServiceProvider::class,
Publish
The last required step is to publish views and assets in your application with :
php artisan ui vue --auth
php artisan vendor:publish --tag=frebato-gucci
php artisan gucci:install
after that
composer dump-autoload
- add use HasDTO; trait in each Models
- add use HasRole; trait in User Model
php artisan gucci:make-dto
After that, customize DTO file generate in /App/DTO/, then :
php artisan gucci:make-datatables
php artisan gucci:generate-migrations
php artisan migrate
php artisan db:seed
npm update
npm run build
Then, go for a walk on the side of config/menu.php to customize the admin panel
Finalize configuration
Add this at bottom of routes/web.php file :
require __DIR__.'/gucci.php';
Congratulations, you have successfully installed Gucci !
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-02