Clear cache before running migrations (#553)

This commit is contained in:
Boy132 2024-08-18 16:43:40 +02:00 committed by GitHub
parent bf23389dba
commit ffadf9ac16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,