Skip to content

Instantly share code, notes, and snippets.

View kk5949's full-sized avatar

Jung Sang Wung kk5949

  • South Korea, Seoul
  • 00:01 (UTC +09:00)
View GitHub Profile
@carloscarucce
carloscarucce / pagination.blade.php
Last active January 27, 2023 03:10
Pagination template for laravel 5
@if (isset($paginator) && $paginator->lastPage() > 1)
<ul class="pagination">
<?php
$interval = isset($interval) ? abs(intval($interval)) : 3 ;
$from = $paginator->currentPage() - $interval;
if($from < 1){
$from = 1;
}