mardi 31 janvier 2017

How to create custom pagination link?

Right now i have this link on paginate :

http://ift.tt/2kKijst

http://ift.tt/2kmsxBB

and what i want is this: http://ift.tt/2kKjzMx 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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire