© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
BlackShadow

belongsTo `Placeholder::` field

Placeholder::make('company_id')
  ->content(fn($record) => CustomerResource::getUrl('edit', $record->company)),
Placeholder::make('company_id')
  ->content(fn($record) => CustomerResource::getUrl('edit', $record->company)),


can i make this a clickable link?
Solution
Placeholder::make('company_id')
->content(function ($record) {
    $url = CustomerResource::getUrl('edit', $record->company);

    return new HtmlString("<a href='{$url}'>{$url}</a>");
}),
Placeholder::make('company_id')
->content(function ($record) {
    $url = CustomerResource::getUrl('edit', $record->company);

    return new HtmlString("<a href='{$url}'>{$url}</a>");
}),
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

save placeholder field
FilamentFFilament / ❓┊help
3y ago
Field with data from relationship (BelongsTo)
FilamentFFilament / ❓┊help
3y ago
Multi field FieldComponent
FilamentFFilament / ❓┊help
2y ago
Associate BelongsTo relationship
FilamentFFilament / ❓┊help
3y ago