Skip to content

Commit c919402

Browse files
committed
add helper for bootstrap 3
1 parent 796ed1e commit c919402

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Illuminate/Pagination/AbstractPaginator.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,17 @@ public static function defaultSimpleView($view)
447447
static::$defaultSimpleView = $view;
448448
}
449449

450+
/**
451+
* Indicate that Bootstrap 3 styling should be used for generated links.
452+
*
453+
* @return void
454+
*/
455+
public static function useBootstrapThree()
456+
{
457+
static::defaultView('pagination::default');
458+
static::defaultSimpleView('pagination::simple-default');
459+
}
460+
450461
/**
451462
* Get an iterator for the items.
452463
*

0 commit comments

Comments
 (0)