fix: slash in env names

ui: placement of env switcher
This commit is contained in:
Andras Bacsai
2024-06-23 17:47:58 +02:00
parent a3255f3ab0
commit 76ba365325
5 changed files with 28 additions and 21 deletions

View File

@@ -109,7 +109,7 @@ class Environment extends Model
protected function name(): Attribute
{
return Attribute::make(
set: fn (string $value) => strtolower($value),
set: fn (string $value) => str($value)->lower()->trim()->replace('/', '-')->toString(),
);
}
}