pxlrbt / filament-spotlight

Quickly navigate your Filament pages
MIT License
239 stars 31 forks source link

Ignores getRouteKeyName() #31

Closed mbalandis closed 2 months ago

mbalandis commented 1 year ago

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?