Feb 25, 2016
0
Level 1
Pagination appending not working
Hi, The previous and next links are working but not the numbered links eg. of a numbered link http://domain.com/?page=2 eg. of next link http://domain.com/?day_filter%5B0%5D=1&page=2
I am filtering search results with a form with checkbox like this ....
Here is blade code
{!! (new App\Pagination($shifts))->appends(Request::except(['_token','csrf_token']))->render() !!}
I amended app\Pagination from Landish
namespace App;
use Landish\Pagination\ZurbFoundation;
class Pagination extends ZurbFoundation {
public function getFoundMsg()
{
if ( $this->paginator->total() )
{
return sprintf("<p>Total of %s found</p>", $this->paginator->total() );
}
return '';
}
public function appends(array $appends)
{
$this->paginator->appends($appends);
return $this;
}
}
Thanks for any help
Please or to participate in this conversation.