I\'m having some trouble with my pagination. I\'m having two tables with data from a database and I paginated it with laravel Paginator.
Now my problem is when you g
in laravel 5.3 (maibe working in other laravel 5 version), i use like this:
$produk = Produk::paginate(5, ['*'], 'produk');
$region = Region::paginate(5, ['*'], 'region');
and in blade templating append links currents of other to keep the position:
{{$produk->appends(['region' => $region->currentPage()])->links()}}
{{$region->appends(['produk' => $produk->currentPage()])->links()}}