<?php

namespace Michaeljennings\Carpenter\Contracts;

interface Paginator
{
    /**
     * Create a new paginator.
     *
     * @param  string|integer $total
     * @param  string|integer $perPage
     * @return Paginator
     */
    public function make($total, $perPage);

    /**
     * Get the pagination links.
     *
     * @return string
     */
    public function links();

    /**
     * Get the current page.
     *
     * @return integer|string
     */
    public function currentPage();
}
<?php

namespace Michaeljennings\Carpenter\Contracts;

interface Paginator
{
    /**
     * Create a new paginator.
     *
     * @param  string|integer $total
     * @param  string|integer $perPage
     * @param  string         $tableKey
     * @return Paginator
     */
    public function make($total, $perPage, $tableKey);

    /**
     * Get the pagination links.
     *
     * @return string
     */
    public function links();

    /**
     * Get the current page.
     *
     * @return integer|string
     */
    public function currentPage();
}
Update the make paginator method to receive the table key
Update the make paginator method to receive the table key
