# How to use Plugin Tool

1、Enter the project and use php artisan | grep plugin to view related commands.

img.png

2、Related command usage

  • Creating a Plugin:
php artisan plugin:make <Plugin Name>
  • Removing a plugin:
php artisan plugin:delete <Plugin Name>
  • Switch plugin:
php artisan plugin:use <Plugin Name>
  • Packaging plugin: 【The packaged files will be placed under /project/storage/zip】
php artisan plugin:zip <Packaging plugin>
  • Creating a Controller:
php artisan plugin:make-controller <Controller Name>
  • Creating aspects:
php artisan plugin:make-aspect <name>