i want to make a pagination from a nested component on laravel controller to livewire
but throw an error
Property type not supported in Livewire for property: [{"current_page":1,"data":[{"Id":3942,"Id_User":55,"Id_Desa":283,"Id_Kategori":6,"Nomor":"6","Tahun":2021,"Tempat_Penetapan":"Desa
this is my controller
'produk' => ProdukHukum::with('desas')->where('Id_User', $user)->orderBy('Tanggal_Pengundangan', 'desc')->paginate(10),
and sento to livewire components
<livewire:admin.tabel-produk-hukum :produk="$produk"/>
and this is the class for ProdukHukum
class
<?php
namespace AppLivewireAdmin;
use LivewireComponent;
use LivewireWithPagination;
class TabelProdukHukum extends Component
{
public $produk;
public function mount($produk)
{
$this->produk = $produk;
}
public function render()
{
return view('livewire.admin.tabel-produk-hukum');
}
}
is it possible to make a pagination form parent to nested components on livewire
thank you