Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Round fractions up
ceil(int|float $num): float
    public function splitIn($numberOfGroups)

    {

        return 
$this->chunk(ceil($this->count() / $numberOfGroups));

    }
    public function splitIn($numberOfGroups)

    {

        return 
$this->chunk(ceil($this->count() / $numberOfGroups));

    }
        $this->total $total;

        
$this->perPage = (int) $perPage;

        
$this->lastPage max((int) ceil($total $perPage), 1);

        
$this->path $this->path !== '/' rtrim($this->path'/') : $this->path;

        
$this->currentPage $this->setCurrentPage($currentPage$this->pageName);

        
$this->items $items instanceof Collection $items Collection::make($items);