© 2026 Hedgehog Software, LLC

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

Is it possible to generate barcode in filament?

Hello,
I have to generate a barcode for a given number and I tried with milon/barcode for laravel like this but it gives 'div' as whole html tag.

TextColumn::make('supplier_barcode')->formatStateUsing(function ($record) {
    $barcode = DNS1D::getBarcodeHTML($record->supplier_barcode, 'PHARMA');
    return $barcode;
}),
TextColumn::make('supplier_barcode')->formatStateUsing(function ($record) {
    $barcode = DNS1D::getBarcodeHTML($record->supplier_barcode, 'PHARMA');
    return $barcode;
}),


Thank you.
Solution
you can add
->html()
->html()
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

Is it possible to generate future dates in Filament
FilamentFFilament / ❓┊help
12mo ago
it is possible to implement Ckeditor in filament?
FilamentFFilament / ❓┊help
2y ago
Is it possible to use filament table in filament form now?
FilamentFFilament / ❓┊help
2y ago
is it possible to have ToggleColumn with text in filament v2?
FilamentFFilament / ❓┊help
3y ago