Skip to content

Commit bf1eef4

Browse files
committed
add useTailwind method
1 parent 2279b73 commit bf1eef4

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
@@ -552,6 +552,17 @@ public static function defaultSimpleView($view)
552552
static::$defaultSimpleView = $view;
553553
}
554554

555+
/**
556+
* Indicate that Tailwind styling should be used for generated links.
557+
*
558+
* @return void
559+
*/
560+
public static function useTailwind()
561+
{
562+
static::defaultView('pagination::tailwind');
563+
static::defaultSimpleView('pagination::simple-tailwind');
564+
}
565+
555566
/**
556567
* Indicate that Bootstrap 3 styling should be used for generated links.
557568
*

0 commit comments

Comments
 (0)