© 2026 Hedgehog Software, LLC

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

form-field

I have a column in Loans table called
loan_agreement_file_path
loan_agreement_file_path
which stores the path of a file. Now what I want is to show the file link of this file in a table list such that when a user clicks on it he/she can download the file.
This is what I have a tried but its not working:
 public static function table(Table $table): Table
    {
        return $table
            ->columns([
 Tables\Columns\TextColumn::make('loan_agreement_file_path')
                    ->formatStateUsing(function (string $state): string {
                        return url("<a href=\"" . asset($state) . "\">Loan Agreement Form</a>");
                    })
                    ->sortable(),

....................................  
 public static function table(Table $table): Table
    {
        return $table
            ->columns([
 Tables\Columns\TextColumn::make('loan_agreement_file_path')
                    ->formatStateUsing(function (string $state): string {
                        return url("<a href=\"" . asset($state) . "\">Loan Agreement Form</a>");
                    })
                    ->sortable(),

....................................  

Any Ideas?
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

Form field
FilamentFFilament / ❓┊help
15mo ago
Multi field FieldComponent
FilamentFFilament / ❓┊help
2y ago
Custom form field
FilamentFFilament / ❓┊help
2y ago
Custom Form Field
FilamentFFilament / ❓┊help
2y ago