控制指令
解壓縮外掛包到外掛目錄
Unzip the plugin files into the /plugins/ directory, the final directory will be /plugins/{fskey}/.
fresns plugin:unzip /www/wwwroot/fresns/storage/plugins/downloads/123e4567-e89b-12d3-a456-426614174000.zip或者
php artisan plugin:unzip /www/wwwroot/fresns/storage/plugins/downloads/123e4567-e89b-12d3-a456-426614174000.zip發布外掛(分發靜態資源)
Publish static resources for the plugin DemoPlugin.
fresns plugin:publish或者
php artisan plugin:publish DemoPlugin/plugins/DemoPlugin/Resources/assets/Distribute to web directories/public/assets/DemoPlugin/
撤銷發布(刪除靜態資源)
Unpublish static resources for the plugin DemoPlugin.
fresns plugin:unpublish或者
php artisan plugin:unpublish DemoPlugin/plugins/DemoPlugin/Resources/assets/Distribute to web directories/public/assets/DemoPlugin/
更新外掛 Composer 依賴套件
Composer all plugins.
fresns plugin:composer-update或者
php artisan plugin:composer-update執行外掛 Migrate
Migrate the given plugin, or without a plugin an argument, migrate all plugins.
fresns plugin:migrate或者
php artisan plugin:migrate DemoPlugin復原外掛 Migrate
Rollback the given plugin, or without an argument, rollback all plugins.
fresns plugin:migrate-rollback或者
php artisan plugin:migrate-rollback DemoPlugin刷新外掛 Migrate
Refresh the migration for the given plugin, or without a specified plugin refresh all plugins migrations.
fresns plugin:migrate-refresh或者
php artisan plugin:migrate-refresh DemoPlugin重置外掛 Migrate
Reset the migration for the given plugin, or without a specified plugin reset all plugins migrations.
fresns plugin:migrate-reset或者
php artisan plugin:migrate-reset DemoPlugin執行外掛 Seed
Seed the given plugin, or without an argument, seed all plugins.
fresns plugin:seed或者
php artisan plugin:seed DemoPlugin安裝外掛
Execute the plugin:unzip、plugin:composer-update、plugin:migrate、plugin:publish commands in that order.
fresns plugin:install /www/wwwroot/fresns/storage/plugins/123e4567-e89b-12d3-a456-426614174000.zip或者
php artisan plugin:install /www/wwwroot/fresns/storage/plugins/123e4567-e89b-12d3-a456-426614174000.zipplugin:publish 文件分發和入庫在最後執行,如果為升級外掛,可在入庫前,取得資料庫舊資訊判斷外掛是否存在以及舊版本號。如果外掛程式有跨版本特殊安裝處理,可憑此判斷新版和舊版之間的差距。
解除安裝外掛
Uninstall the plugin and select whether you want to clean the data of the plugin.
fresns plugin:uninstall --cleandata=true
fresns plugin:uninstall --cleandata=false或者
php artisan plugin:uninstall DemoPlugin --cleandata=true
php artisan plugin:uninstall DemoPlugin --cleandata=false/plugins/DemoPlugin/Physically deletion the folder./public/assets/DemoPlugin/Physically deletion the folder.- Remove the plugin composer dependency package (skip if the main application or another plugin is in use)
- Logically deletion the value of the record where the
fskeycolumn of thepluginstable isDemoPlugin.