Labels #15

Closed
opened 2025-01-08 18:20:32 +00:00 by Read2uk · 1 comment
Read2uk commented 2025-01-08 18:20:32 +00:00 (Migrated from github.com)

Hi,

How can you set labels for each environment, for example my env is 'prod' but I want the indicator to say 'Production'.

thanks

Hi, How can you set labels for each environment, for example my env is 'prod' but I want the indicator to say 'Production'. thanks
pxlrbt commented 2025-01-09 11:17:20 +00:00 (Migrated from github.com)

It's not possible currently. It reads straight from app()->environment(). I would accept a PR that adds a ->label() method, that accepts a Closure to map the label, if you want to give it a try.

It's not possible currently. It reads straight from `app()->environment()`. I would accept a PR that adds a `->label()` method, that accepts a Closure to map the label, if you want to give it a try.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-environment-indicator#15
No description provided.