Please help

Hi i want create table list with query parameter example like this myapp.com/admin/merchant/{merchantId}/balance-history but when first load its smoothly data show at table but when i click pagination or changes size page data its empty? any can help me thankyou
No description
3 Replies
McClabe
McClabeOP7d ago
for implement at listpage like this protected function getTableQuery(): ?\Illuminate\Database\Eloquent\Builder { $parameterId = session()->get('parameterId'); // Retrieve the parameterId from the session return ReportBalanceMerchantCentral::query() ->where('merchant_id', $parameterId); } public function mount(): void { $this->parameterId = request()->route('record'); session()->put('parameterId', $this->parameterId); }
McClabe
McClabeOP7d ago
and my code table :
McClabe
McClabeOP7d ago
isssue is solve

Did you find this page helpful?