© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
WessBechard

getUrl() Method not working on Model

Good morning. Hoping someone might have some insight, I can't find a clear answer with search. I'm trying to pre-fill a Placeholder with a link to another model's view resource, but I'm getting an error that I can't use my Organizations::getUrl() method.

Forms\Components\Placeholder::make('Company Link')
->hidden(fn (Get $get) => $get('organization_id') == '')
->label('Company Link')
->content(function (Opportunities $record): string {
$organization = Organizations::find($record->organization_id);
// get a URL to the record view page
return Organizations::getUrl('edit', ['record' => $organization]);
})

Error:

Call to undefined method App\Models\Organizations::getUrl()

I just updated to the latest version (v3.2.81) and the issue persists.

Organizations is already used on this form for a select without issue, it's just the getUrl() method that's not working.
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

getUrl does not exist
FilamentFFilament / ❓┊help
3y ago
Model Policy on page not working
FilamentFFilament / ❓┊help
2y ago
Delete method inside model policy not working after editing
FilamentFFilament / ❓┊help
6mo ago
Utility Injection on action method not working
FilamentFFilament / ❓┊help
3y ago