How to link to a resource from a repeater entry?
I'm listing articles an author has published under the repeater entry, and can't work out how to link to the article they authored.
6 Replies
share your code please
@Leandro Ferreira there's nothing to share, I have no idea how to do it 🙂
How do you link to a related resource?
->url(fn($record):string => ...)
Or using formatStateUsing?Oh there’s no generator method or anything?
I thought there'd be something like: TextInput::make('category')->linkToResource()
.etc.
Solution
you can do this
Ah, cool. ty 🙂