Answer the question
In order to leave comments, you need to log in
How to change pagination in laravel and what does @ mean in code - is it php?
How to change pagination in laravel and what does @ mean in code - is it php?
Now it is displayed in this form and all page numbers are displayed? how to hide leave first 4 and last 4?
@if($news->lastPage() > 1)
<div class="masonry_footer">
<div class="masonry_breadcrumbs">
@for($i=1;$i<=$news->lastPage();$i++)
<a href="{{route('indexPage', [$i])}}" class="masonry_breadcrumbs_item {{$news->currentPage() == $i ? "active ": ""}}">{{$i}}</a>
@endfor
{{--$users = DB::table('users')->simplePaginate(15);--}}
{{[email protected]($news->currentPage() < $news->lastPage())--}}
{{--<a href="{{$news->currentPage()+1}}" class="masonry_breadcrumbs_item ico_arrows"></a>--}}
{{[email protected]}}
</div>
</div>
@endif
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question