使用spatie分页始终在网址中显示paginateroute :: paginateroute

时间:2019-03-22 13:06:32

标签: laravel pagination spatie

为什么我的网址像这样 example.test/blog/paginateroute::paginateroute.page/2

我的路线:

Route::paginate('blog', [ 'as' => 'blog', 'uses' => 'BlogController@index' ] );

观看次数

  @if(PaginateRoute::hasPreviousPage())
    <a href="{{ PaginateRoute::previousPageUrl() }}"> « </a>
@endif

@if(PaginateRoute::hasNextPage($posts))
    <a href="{{ PaginateRoute::nextPageUrl($posts) }}"> » </a>
@endif

什么是删除paginateroute :: paginateroute的解决方案。来自网址?

0 个答案:

没有答案