控制指令
解压插件包
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.