Skip to content

Commit

Permalink
Merge pull request #10439 from exula/exula-fix-slack-settings
Browse files Browse the repository at this point in the history
Update SettingsController.php to save Slack Settings
  • Loading branch information
snipe committed Dec 15, 2021
2 parents ace4a00 + dbdc1c7 commit 395401e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/SettingsController.php
Expand Up @@ -674,6 +674,10 @@ public function postSlack(SlackSettingsRequest $request)
return redirect()->to('admin')->with('error', trans('admin/settings/message.update.error'));
}

$setting->slack_endpoint = $request->input('slack_endpoint');
$setting->slack_channel = $request->input('slack_channel');
$setting->slack_botname = $request->input('slack_botname');

if ($setting->save()) {
return redirect()->route('settings.index')
->with('success', trans('admin/settings/message.update.success'));
Expand Down

0 comments on commit 395401e

Please sign in to comment.