From ffadf9ac163c57ef5b0bca72016a109015398381 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Sun, 18 Aug 2024 16:43:40 +0200 Subject: [PATCH] Clear cache before running migrations (#553) --- app/Filament/Pages/Installer/PanelInstaller.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Filament/Pages/Installer/PanelInstaller.php b/app/Filament/Pages/Installer/PanelInstaller.php index 2e0dcaf57..11cbd98c8 100644 --- a/app/Filament/Pages/Installer/PanelInstaller.php +++ b/app/Filament/Pages/Installer/PanelInstaller.php @@ -103,6 +103,10 @@ class PanelInstaller extends SimplePage implements HasForms $variables = array_get($inputs, 'env'); $this->writeToEnvironment($variables); + // Clear cache + Artisan::call('config:clear'); + Artisan::call('cache:clear'); + // Run migrations Artisan::call('migrate', [ '--force' => true,