Filament v4 | Spotlight with navigationGroup enum does not seem to work #59

Closed
opened 2025-08-18 23:13:08 +00:00 by dstollie · 3 comments
dstollie commented 2025-08-18 23:13:08 +00:00 (Migrated from github.com)

For some reason when setting the navigationGroup like below, it does not seem to find it ins potlight

Image
protected static string | UnitEnum | null $navigationGroup = NavigationGroup::Talent;

When setting it as a regular string, it does work.

Image
  protected static string | UnitEnum | null $navigationGroup = 'Talent';

Registering navigation groups via Enum is something new in filament v4 https://filamentphp.com/docs/4.x/navigation/overview#registering-navigation-groups-with-an-enum

For some reason when setting the navigationGroup like below, it does not seem to find it ins potlight <img width="580" height="117" alt="Image" src="https://github.com/user-attachments/assets/5fcca44c-7de8-446b-ba39-d751af4c3637" /> ```php protected static string | UnitEnum | null $navigationGroup = NavigationGroup::Talent; ``` When setting it as a regular string, it does work. <img width="535" height="270" alt="Image" src="https://github.com/user-attachments/assets/094575e1-5378-4fe1-84eb-9630cf8220f5" /> ```php protected static string | UnitEnum | null $navigationGroup = 'Talent'; ``` Registering navigation groups via Enum is something new in filament v4 https://filamentphp.com/docs/4.x/navigation/overview#registering-navigation-groups-with-an-enum
dstollie commented 2025-08-18 23:14:56 +00:00 (Migrated from github.com)

I am on this version

          "name": "pxlrbt/filament-spotlight",
          "version": "v2.0.2",
I am on this version ``` "name": "pxlrbt/filament-spotlight", "version": "v2.0.2", ```
theofanisv commented 2025-10-20 12:05:48 +00:00 (Migrated from github.com)
I made a fix for this https://github.com/pxlrbt/filament-spotlight/pull/60
pxlrbt commented 2025-10-20 14:55:01 +00:00 (Migrated from github.com)

Thanks. Should be fixed.

Thanks. Should be fixed.
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-spotlight#59
No description provided.