Inheritance: extends PaginationHTML, implements Illuminate\Contracts\Pagination\Presenter, use trait Illuminate\Pagination\UrlWindowPresenterTrait
示例#1
0
 protected function getNextButton()
 {
     $replacements = ['disabled' => 'disabled next', '<li>' => '<li class="next">', 'span' => 'a'];
     return str_replace(array_keys($replacements), array_values($replacements), parent::getNextButton());
 }
 public function testBootstrapPresenterCanGeneratorLinksForWhenOnFirstPage()
 {
     $p = new LengthAwarePaginator($this->array, count($this->array), 1, 1);
     $presenter = new BootstrapPresenter($p);
     $this->assertEquals(trim(file_get_contents($this->dir . 'first_page.html')), $presenter->render());
 }