Skip to content

Commit

Permalink
Eager load user
Browse files Browse the repository at this point in the history
  • Loading branch information
andreia committed Aug 16, 2022
1 parent 53b3afb commit 27ab305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RelationManagers/AuditsRelationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static function canViewForRecord(Model $ownerRecord): bool
protected function getTableQuery(): Builder
{
return Audit::query()
->with('user')
->orderBy(config('filament-auditing.audits_sort.column'), config('filament-auditing.audits_sort.direction'));
}

Expand Down

0 comments on commit 27ab305

Please sign in to comment.