public function __construct(Paginator $paginator, Router $router) { $this->paginator = $paginator; $this->router = $router; }