Inheritance: extends PaginationHTML, implements Illuminate\Contracts\Pagination\Presenter, use trait Illuminate\Pagination\UrlWindowPresenterTrait
Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
 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());
 }