From 1bf828778cf9349f16c94476e0fad752d23efea3 Mon Sep 17 00:00:00 2001 From: Dave Etheridge Date: Thu, 16 Nov 2023 18:51:00 +0000 Subject: [PATCH] feature: Allow searching of Discord ID in Account list (#3336) --- app/Filament/Resources/AccountResource.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Filament/Resources/AccountResource.php b/app/Filament/Resources/AccountResource.php index f37d2764c4..52dd11fbc8 100644 --- a/app/Filament/Resources/AccountResource.php +++ b/app/Filament/Resources/AccountResource.php @@ -117,7 +117,11 @@ public static function table(Table $table): Table { return $table ->columns([ - Tables\Columns\TextColumn::make('id')->sortable()->searchable()->label('ID'), + Tables\Columns\TextColumn::make('id')->sortable()->searchable()->label('CID'), + Tables\Columns\TextColumn::make('discord_id') + ->searchable() + ->label('Discord ID') + ->toggleable(isToggledHiddenByDefault: true), Tables\Columns\TextColumn::make('name')->sortable()->searchable(['name_first', 'name_last']), Tables\Columns\TextColumn::make('qualification_atc')->sortable()->label('ATC Rating'), Tables\Columns\TextColumn::make('qualification_pilot')->sortable()->label('Pilot Rating'),