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:
```php Placeholder::make('company_id') ->content(function ($record) { $url = CustomerResource::getUrl('edit', $record->company); ...
Jump to solution
2 Replies
Solution
ZedoX
ZedoX17mo ago
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>");
}),
BlackShadow
BlackShadowOP17mo ago
I found it myself, i thought i closed the question 😮
Want results from more Discord servers?
Add your server