multiple domains

This commit is contained in:
Andras Bacsai committed 2023-05-16 15:41:23 +02:00
1 parent 38a45d9816
commit b14612aba5
3 files changed
+19 -13

No files matched your search

@@ -4,6 +4,7 @@ namespace App\Http\Livewire\Project\Application;
use App\Models\Application;
use Livewire\Component;
use Illuminate\Support\Str;
class General extends Component
{
@@ -75,6 +76,10 @@ class General extends Component
{
try {
$this->validate();
$domains = Str::of($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {
return Str::of($domain)->trim()->lower();
});
$this->application->fqdn = $domains->implode(',');
$this->application->save();
} catch (\Exception $e) {
return generalErrorHandler($e, $this);