frebato / gucci
facilitates the implementation of an automated back office
dev-master
2023-02-01 12:29 UTC
Requires
- php: ^8.0.2
- lab404/laravel-impersonate: ^1.7
- laravel/ui: ^3.3
- yajra/laravel-datatables: ^1.5
Requires (Dev)
- illuminate/support: ^8.83.26
This package is not auto-updated.
Last update: 2025-03-12 21:22:24 UTC
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 !