@@ -33,7 +33,11 @@ class Links extends Component
|
||||
if ($application->ports) {
|
||||
$portsCollection = collect(str($application->ports)->explode(','));
|
||||
$portsCollection->map(function ($port) {
|
||||
$hostPort = str($port)->contains(':') ? str($port)->before(':') : $port;
|
||||
if (str($port)->contains(':')) {
|
||||
$hostPort = str($port)->before(':');
|
||||
} else {
|
||||
$hostPort = $port;
|
||||
}
|
||||
$this->links->push(base_url(withPort: false).":{$hostPort}");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user