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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Add updatedApplicationFqdn method to ServiceApplicationView
Andras Bacsaic223408c3cb1
diff --git a/app/Livewire/Project/Service/ServiceApplicationView.php b/app/Livewire/Project/Service/ServiceApplicationView.phpindex 70a8662d58..0986987f92 100644--- a/app/Livewire/Project/Service/ServiceApplicationView.php+++ b/app/Livewire/Project/Service/ServiceApplicationView.php@@ -24,6 +24,16 @@ class ServiceApplicationView extends Component{return view('livewire.project.service.service-application-view');}+ public function updatedApplicationFqdn()+ {+ $this->application->fqdn = str($this->application->fqdn)->replaceEnd(',', '')->trim();+ $this->application->fqdn = str($this->application->fqdn)->replaceStart(',', '')->trim();+ $this->application->fqdn = str($this->application->fqdn)->trim()->explode(',')->map(function ($domain) {+ return str($domain)->trim()->lower();+ });+ $this->application->fqdn = $this->application->fqdn->unique()->implode(',');+ $this->application->save();+ }public function instantSave(){$this->submit();