diff --git a/app/Http/Controllers/V1/Onboarding/DatabaseConfigurationController.php b/app/Http/Controllers/V1/Onboarding/DatabaseConfigurationController.php index 19f6103f..30edc9bf 100644 --- a/app/Http/Controllers/V1/Onboarding/DatabaseConfigurationController.php +++ b/app/Http/Controllers/V1/Onboarding/DatabaseConfigurationController.php @@ -35,6 +35,7 @@ class DatabaseConfigurationController extends Controller $results = $this->environmentManager->saveDatabaseVariables($request); if (array_key_exists("success", $results)) { + Artisan::call('key:generate'); Artisan::call('config:clear'); Artisan::call('cache:clear'); Artisan::call('storage:link'); diff --git a/config/hashids.php b/config/hashids.php index 70248c9d..ddb863a4 100644 --- a/config/hashids.php +++ b/config/hashids.php @@ -41,19 +41,19 @@ return [ 'connections' => [ Invoice::class => [ - 'salt' => Invoice::class.'7623e9b0009feff8e024a689d6ef59ce', + 'salt' => Invoice::class.config('app.key'), 'length' => '20', - 'alphabet' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' + 'alphabet' => 'XKyIAR7mgt8jD2vbqPrOSVenNGpiYLx4M61T' ], Estimate::class => [ - 'salt' => Estimate::class.'7623e9b0009feff8e024a689d6ef59ce', + 'salt' => Estimate::class.config('app.key'), 'length' => '20', - 'alphabet' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' + 'alphabet' => 'yLJWP79M8rYVqbn1NXjulO6IUDdvekRQGo40' ], Payment::class => [ - 'salt' => Payment::class.'7623e9b0009feff8e024a689d6ef59ce', + 'salt' => Payment::class.config('app.key'), 'length' => '20', - 'alphabet' => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890' + 'alphabet' => 'asqtW3eDRIxB65GYl7UVLS1dybn9XrKTZ4zO' ], ],