diff --git a/app/Filament/Resources/StandAssignmentsHistoryResource.php b/app/Filament/Resources/StandAssignmentsHistoryResource.php index d704e7b52..4fc7a32b1 100644 --- a/app/Filament/Resources/StandAssignmentsHistoryResource.php +++ b/app/Filament/Resources/StandAssignmentsHistoryResource.php @@ -36,7 +36,10 @@ class StandAssignmentsHistoryResource extends Resource public static function getEloquentQuery(): Builder { - return StandAssignmentsHistory::with('stand', 'stand.airfield'); + return StandAssignmentsHistory::with('stand', 'stand.airfield') + ->withoutGlobalScopes([ + SoftDeletingScope::class, + ]); } public static function canGloballySearch(): bool @@ -101,6 +104,7 @@ public static function table(Table $table): Table TextColumn::make('type') ->label(static::translateTablePath('columns.type')), ]) + ->defaultSort('id', 'desc') ->actions([ ViewAction::make('view_context') ->label('View Context')