Control
Unzip The Plugin Package
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.zipor
php artisan plugin:unzip /www/wwwroot/fresns/storage/plugins/downloads/123e4567-e89b-12d3-a456-426614174000.zipPublish Plugin
Publish static resources for the plugin DemoPlugin.
fresns plugin:publishor
php artisan plugin:publish DemoPlugin/plugins/DemoPlugin/Resources/assets/Distribute to web directories/public/assets/DemoPlugin/
Unpublish
Unpublish static resources for the plugin DemoPlugin.
fresns plugin:unpublishor
php artisan plugin:unpublish DemoPlugin/plugins/DemoPlugin/Resources/assets/Distribute to web directories/public/assets/DemoPlugin/
Update Plugin Composer Package
Composer all plugins.
fresns plugin:composer-updateor
php artisan plugin:composer-updateRun Plugin Migrate
Migrate the given plugin, or without a plugin an argument, migrate all plugins.
fresns plugin:migrateor
php artisan plugin:migrate DemoPluginRollback Plugin Migrate
Rollback the given plugin, or without an argument, rollback all plugins.
fresns plugin:migrate-rollbackor
php artisan plugin:migrate-rollback DemoPluginRefresh Plugin Migrate
Refresh the migration for the given plugin, or without a specified plugin refresh all plugins migrations.
fresns plugin:migrate-refreshor
php artisan plugin:migrate-refresh DemoPluginReset Plugin Migrate
Reset the migration for the given plugin, or without a specified plugin reset all plugins migrations.
fresns plugin:migrate-resetor
php artisan plugin:migrate-reset DemoPluginRun Plugin Seed
Seed the given plugin, or without an argument, seed all plugins.
fresns plugin:seedor
php artisan plugin:seed DemoPluginInstall Plugin
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.zipor
php artisan plugin:install /www/wwwroot/fresns/storage/plugins/123e4567-e89b-12d3-a456-426614174000.zipUninstall Plugin
Uninstall the plugin and select whether you want to clean the data of the plugin.
fresns plugin:uninstall --cleardata=true
fresns plugin:uninstall --cleardata=falseor
php artisan plugin:uninstall DemoPlugin --cleardata=true
php artisan plugin:uninstall DemoPlugin --cleardata=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.