Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 6 pagination example

DB::table('users') -> paginate(15)
  
//2 show pagination in blade file
@if ($items->hasPages())
    <div class="pagination-wrapper">
         {{ $items->links() }}
    </div>
@endif
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #pagination
ADD COMMENT
Topic
Name
8+9 =