| 1234567891011121314 |
- <?php
- return [
- app\common\events\PluginWasEnabled::class => function ($plugins) {
- \Artisan::call('migrate', ['--path' => 'plugins/lease-toy/migrations', '--force' => true]);
- Log::info('[lease-toy] 插件已启用');
- },
- app\common\events\PluginWasDeleted::class => function ($plugins) {
- \Artisan::call('migrate:rollback', ['--path' => 'plugins/lease-toy/migrations']);
- Log::info('[lease-toy] 插件已禁用');
- },
- ];
|