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
3 Replies
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);
}
and my code table :
isssue is solve