我在Laravel下面的代碼來創建分頁Laravel 5.2分頁目標_blank
Route::get('hede', function(){
$paginator = new Illuminate\Pagination\LengthAwarePaginator(
range(1,500), //a fake range of total items, you can use range(1, count($collection))
500, //count as in 1st parameter
20, //items per page
\Illuminate\Pagination\Paginator::resolveCurrentPage(), //resolve the path
['path' => \Illuminate\Pagination\Paginator::resolveCurrentPath()]
);
return $paginator->render();
})
我找不到你怎麼設置鏈接的目標,我需要選擇_blank,_parent之間變化_自。
將它附加到URL並且不會在鏈接中創建屬性。 – user2075215
對不起,應該多加註意,我已經使用Mark Davidson的建議更新了我的答案。 – user3158900