Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: saveModel email settings

Andras Bacsai9d53e04ce9b4
diff --git a/app/Http/Livewire/Notifications/EmailSettings.php b/app/Http/Livewire/Notifications/EmailSettings.php
index 4ddfaf87fd..4ef735a043 100644
--- a/app/Http/Livewire/Notifications/EmailSettings.php
+++ b/app/Http/Livewire/Notifications/EmailSettings.php
@@ -107,7 +107,14 @@ class EmailSettings extends Component
return general_error_handler($e, $this);
}
}
-
+ public function saveModel()
+ {
+ $this->team->save();
+ if (is_a($this->team, Team::class)) {
+ refreshSession();
+ }
+ $this->emit('success', 'Settings saved.');
+ }
public function submit()
{
try {