| 1234567891011121314151617 |
- <?php
- /**
- * Created by PhpStorm.
- * User: CJVV
- * Date: 2021/2/26
- * Time: 9:25
- */
- return [
- app\common\events\PluginWasEnabled::class => function ($plugins) {
- \Artisan::call('migrate',['--path'=>'plugins/blind-box/migrations','--force'=>true]);
- },
- app\common\events\PluginWasDeleted::class => function ($plugins) {
- \Artisan::call('migrate:rollback',['--path'=>'plugins/blind-box/migrations']);
- }
- ];
|