© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
3 replies
Raj Siva-Rajah

Equivalent of `slugAttribute` for resources

Hi all

I'm using UUIDs for primary keys, which don't look great for URLs. I've got a
pretty_id
pretty_id
attribute on my resource models that I'd like to use for URLs. Does anyone know how? You can specify
slugAttribute
slugAttribute
for tenants but I can't find anything similar for resources.
Solution
Never mind,
recordRouteKeyName
recordRouteKeyName
is what I was looking for
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dynamic slugAttribute for tenant and tenantDomain, bad?
FilamentFFilament / ❓┊help
5d ago
Equivalent of UpdateOrCreate
FilamentFFilament / ❓┊help
2y ago
Equivalent of novas computed fields?
FilamentFFilament / ❓┊help
2y ago
V3 equivalent of `Filament::serving`
FilamentFFilament / ❓┊help
3y ago