From c919402d5847830c1b2a39529cac90251f838709 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 26 Jan 2018 13:37:32 -0600 Subject: [PATCH] add helper for bootstrap 3 --- src/Illuminate/Pagination/AbstractPaginator.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Illuminate/Pagination/AbstractPaginator.php b/src/Illuminate/Pagination/AbstractPaginator.php index 6d276633ca5e..78b2e0743305 100644 --- a/src/Illuminate/Pagination/AbstractPaginator.php +++ b/src/Illuminate/Pagination/AbstractPaginator.php @@ -447,6 +447,17 @@ public static function defaultSimpleView($view) static::$defaultSimpleView = $view; } + /** + * Indicate that Bootstrap 3 styling should be used for generated links. + * + * @return void + */ + public static function useBootstrapThree() + { + static::defaultView('pagination::default'); + static::defaultSimpleView('pagination::simple-default'); + } + /** * Get an iterator for the items. *