From a645a126b35708e08d601b29146109f29a221bd3 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Tue, 18 Apr 2017 20:07:59 +0100 Subject: [PATCH] Call db:seed after DB update --- app/Http/Middleware/AppInstallation.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Middleware/AppInstallation.php b/app/Http/Middleware/AppInstallation.php index 7f3da93..a03596c 100644 --- a/app/Http/Middleware/AppInstallation.php +++ b/app/Http/Middleware/AppInstallation.php @@ -98,6 +98,8 @@ class AppInstallation Artisan::call('cache:clear'); Artisan::call('migrate', ['--force' => true]); + Artisan::call('db:seed'); + $className = sprintf('DataMigrationV%s', str_replace(['.', '-'], '_', $appVersionNumber)); if (class_exists($className)) {