Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Created January 9, 2014 00:09
Show Gist options
  • Save fhferreira/8327147 to your computer and use it in GitHub Desktop.
Save fhferreira/8327147 to your computer and use it in GitHub Desktop.
View Composer with Paginator add Query String parameters
<?php
View::composer(Paginator::getViewName(), function($view) {
$query = array_except( Input::query(), Paginator::getPageName() );
$view->paginator->appends($query);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment