Skip to content

Commit

Permalink
add useTailwind method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 20, 2020
1 parent 2279b73 commit bf1eef4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Pagination/AbstractPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,17 @@ public static function defaultSimpleView($view)
static::$defaultSimpleView = $view;
}

/**
* Indicate that Tailwind styling should be used for generated links.
*
* @return void
*/
public static function useTailwind()
{
static::defaultView('pagination::tailwind');
static::defaultSimpleView('pagination::simple-tailwind');
}

/**
* Indicate that Bootstrap 3 styling should be used for generated links.
*
Expand Down

0 comments on commit bf1eef4

Please sign in to comment.