src/Repositories/Repository.php
public function get($limit = null)
    {
        if ($limit) {
            $this->builder->take($limit);
        }
        return $this->builder->get();
    }
public function get($limit = null)
    {
        if ($limit) {
            $this->builder->take($limit);
        }
        return $this->builder->get();
    }
Paginate the given query into a simple paginator.

@param int $perPage
@param array $columns
@param string $pageName
@param int|null $page
@return \Illuminate\Contracts\Pagination\LengthAwarePaginator