© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Fabien K.

getTableRecordUrlUsing - in RelationManager wrong argument.

I was using 3.0.39

After updating to 3.0.69 callback injects $record as Table instead of model


My code (in a RelationManager)
protected function getTableRecordUrlUsing(): ?Closure
{
    return function (Model $record): string {
        return  ShopCategoryResource::getUrl('edit', ['record' => $record]);
    };
}
protected function getTableRecordUrlUsing(): ?Closure
{
    return function (Model $record): string {
        return  ShopCategoryResource::getUrl('edit', ['record' => $record]);
    };
}


I don't know if it's intended or not but it does no longer reflect the doc at https://filamentphp.com/docs/2.x/tables/getting-started#record-urls
Getting started - Table Builder - Filament
Solution
Well, just noticed that I looked at 2.0 doc
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

getTableRecordUrlUsing a new tab
FilamentFFilament / ❓┊help
3y ago
getTableRecordUrlUsing and shouldOpenInNewTab = true?
FilamentFFilament / ❓┊help
3y ago
AttachAction in relationManager
FilamentFFilament / ❓┊help
14mo ago
RelationManager in view
FilamentFFilament / ❓┊help
2y ago