Right now i have this link on paginate :
www.test.com/search/filter?page=1
www.test.com/search/filter?page=2
and what i want is this:
www.test.com/search?search=&page=2
and so on
Right now i have this:
{!! $properties->appends(['toggle' => Request::get('toggle'), 'search' => Request::get('search')])->render() !!}
How can i change this to have route like this what i want?
i found this:
Route::get('users', function () {
$users = App\User::paginate(15);
$users->setPath('custom/url');
//
});
But problem is that i use one function for multiple stuff so i can not set path in controller.