UserResource fails to load when RouteKey is defined
I have Spatie/Sluggable set up on my User model, so my users' bio pages can be displayed on the public site. When I set the RouteKey to use this slug, I get the following error from the UserResource
2 Replies
However the url is being fetched the record / record id is missing
Not familiar with that plugin tbh...
Maybe it helps to set
protected static ?string $recordRouteKeyName = 'slug'
to the resource?