Laravel Pagination links not including other GET parameters

前端 未结 12 632
遥遥无期
遥遥无期 2020-12-04 08:35

I am using Eloquent together with Laravel 4\'s Pagination class.

Problem: When there are some GET parameters in the URL, eg: http://site.com/u

12条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 08:50

    for who one in laravel 5 or greater in blade:

    {{ $table->appends(['id' => $something ])->links() }}
    

    you can get the passed item with

    $passed_item=$request->id;
    

    test it with

    dd($passed_item);
    

    you must get $something value

提交回复
热议问题