Skip to content

Commit

Permalink
perf: added select columns to resource table query
Browse files Browse the repository at this point in the history
  • Loading branch information
carloeusebi authored Jan 19, 2025
1 parent 7c712a6 commit 3cbc1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/ExceptionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public static function form(Form $form): Form
public static function table(Table $table): Table
{
return $table
->modifyQueryUsing(fn (Builder $query) => $query->select('id', 'path', 'method', 'type', 'code', 'ip', 'created_at'))
->columns([
Tables\Columns\TextColumn::make('method')
->label(fn (): string => __('filament-exceptions::filament-exceptions.columns.method'))
Expand Down

0 comments on commit 3cbc1f1

Please sign in to comment.