pepedra
pepedra
FFilament
Created by pepedra on 4/4/2024 in #❓┊help
How to use external links in table builder? Please help
I'm new to Filament and I'm having trouble accessing an external link. I have a client resource, and each one of them has an external link (website) that is mandatory. However, when I try to access the link by clicking on the icon in the table, Filament automatically adds 'localhost' before the link Example: In my database i have this url URL = www.test.com When I press the icon, it redirects me to the page localhost/admin/www.test.com.
Tables\Columns\IconColumn::make('url')
->label('Link')
->icon('heroicon-o-link')
->url(fn($record) => $record->url, true)
Tables\Columns\IconColumn::make('url')
->label('Link')
->icon('heroicon-o-link')
->url(fn($record) => $record->url, true)
Tks
5 replies