【发布时间】:2018-02-05 15:35:22
【问题描述】:
我有一个包,我的 ServiceProvider 复制了迁移。这在 php artisan 迁移后工作正常。但是现在我想在作曲家更新名称/名称包时执行包迁移。 所以,php artisan 更新 name/packagename 并直接自动迁移。
我怎样才能做到这一点?
$this->publishes([
__DIR__ . '/database/migrations' => $this->app->databasePath() . '/migrations'
], 'migrations');
【问题讨论】:
-
是否需要在任何包更新或特定包更新后运行迁移?
-
@AlexG。在作曲家更新后直接。所以在包裹的某个地方?
标签: laravel-5