mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
Add updatedApplicationFqdn method to ServiceApplicationView
This commit is contained in:
parent
3cdccb49ef
commit
c223408c3c
@ -24,6 +24,16 @@ public function render()
|
|||||||
{
|
{
|
||||||
return view('livewire.project.service.service-application-view');
|
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()
|
public function instantSave()
|
||||||
{
|
{
|
||||||
$this->submit();
|
$this->submit();
|
||||||
|
Loading…
Reference in New Issue
Block a user