© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
6 replies
Eskie

Copyable Not working

It seems that copyable not working on v4..

public function table(Table $table): Table
    {
        /** @var ?User $user */
        $user = auth()->user();
        abort_if($user === null, 404);

        return $table
            ->query(fn () => $user->tokens())
            ->columns([
                TextColumn::make('name'),
                TextColumn::make('token')
                    ->copyable()
                    ->copyMessage('token copied')
                    ->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),
            ])
            ->recordActions([
                DeleteAction::make(),
            ])
            ->toolbarActions([
                DeleteBulkAction::make()
            ]);
    }
public function table(Table $table): Table
    {
        /** @var ?User $user */
        $user = auth()->user();
        abort_if($user === null, 404);

        return $table
            ->query(fn () => $user->tokens())
            ->columns([
                TextColumn::make('name'),
                TextColumn::make('token')
                    ->copyable()
                    ->copyMessage('token copied')
                    ->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),
            ])
            ->recordActions([
                DeleteAction::make(),
            ])
            ->toolbarActions([
                DeleteBulkAction::make()
            ]);
    }
Screenshot_2025-08-14_051248.png
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

copyable() not working
FilamentFFilament / ❓┊help
3y ago
Copyable Action
FilamentFFilament / ❓┊help
3y ago
Copyable Behavior Changed
FilamentFFilament / ❓┊help
6mo ago
Text column copyable()
FilamentFFilament / ❓┊help
2y ago