Route query string values don't persist with pagination in Table

Hello , good evening i need help here is my code :

public static function table(Table $table): Table
    {
        return $table
            ->query(
                Transaction::query()
                    ->where('user_id', request()->get('record')))
            ->columns([
                //
            ])
            ->filters([
                //
            ])
            ->persistFiltersInSession()
            ->persistSortInSession()
            ->actions([
                Tables\Actions\EditAction::make(),
                Tables\Actions\DeleteAction::make(),
            ])
            ->bulkActions([
                Tables\Actions\BulkActionGroup::make([
                    Tables\Actions\DeleteBulkAction::make(),
                ]),
            ]);
    }


how to make the table not forget about request()->get('record')

thanks
Was this page helpful?