diff --git a/app/Domains/Messages/RoleEnum.php b/app/Domains/Messages/RoleEnum.php index bdec8ab8..becb1a25 100644 --- a/app/Domains/Messages/RoleEnum.php +++ b/app/Domains/Messages/RoleEnum.php @@ -2,7 +2,7 @@ namespace App\Domains\Messages; -enum git pRoleEnum: string +enum RoleEnum: string { case User = 'user'; case System = 'system'; diff --git a/app/Http/Controllers/SettingController.php b/app/Http/Controllers/SettingController.php index 6fbd68af..201abe29 100644 --- a/app/Http/Controllers/SettingController.php +++ b/app/Http/Controllers/SettingController.php @@ -31,6 +31,7 @@ public function updateClaude(Request $request, Setting $setting) $setting->save(); $setting->updateStep($setting); $this->clearCache(); + return back(); } @@ -47,6 +48,7 @@ public function updateOllama(Request $request, Setting $setting) $setting->save(); $setting->updateStep($setting); $this->clearCache(); + return back(); } @@ -63,6 +65,7 @@ public function updateGroq(Request $request, Setting $setting) $setting->save(); $setting->updateStep($setting); $this->clearCache(); + return back(); } @@ -85,7 +88,8 @@ public function updateOpenAi(Request $request, Setting $setting) return back(); } - protected function clearCache() { + protected function clearCache() + { Artisan::call('optimize:clear'); } }