alperenersoy/filament-export

FilamentExportHeaderAction return all data, doesn't respect getTableQuery method

Closed this issue · 1 comments

the problem is the same as #21 . I have read all the issues but have not found a solution

in get Table query method i use it like this

  public function getTableQuery(): Builder 
    {
        $record = Route::current()->record;
        return PlanKegiatanPengajuanPerjalananDinas::query()
            ->where('pengajuan_perjalanan_dinas_id', $record);
    }

return data table

image

but on export the result returns all data

image
image

am I missing somthing?

thanks in advance

hey! somehow the changes i've made in #21 were gone. added again and should work well after the release.