Ignores getRouteKeyName() #31

Closed
opened 2023-09-12 08:16:17 +00:00 by mbalandis · 0 comments
mbalandis commented 2023-09-12 08:16:17 +00:00 (Migrated from github.com)

In URL I have set uuid instead of id: [resource]/[uuid]/edit . Edits in work fine in Filament routes but Spotlight ignores the method in the Model:

  public function getRouteKeyName()
  {
      return 'uuid';
  }

and does: [resource]/[id]/edit so it is 404.
That should be checked when performing search. Am I missing something?

In URL I have set uuid instead of id: [resource]/[uuid]/edit . Edits in work fine in Filament routes but Spotlight ignores the method in the Model: ``` public function getRouteKeyName() { return 'uuid'; } ``` and does: [resource]/[id]/edit so it is 404. That should be checked when performing search. Am I missing something?
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#31
No description provided.