Skip to content

withDefaultPerPage not working  #174

@ppshobi

Description

@ppshobi

I followed the getting started guide and created posts schema and added a pagination by default 25

    /**
     * Get the resource paginator.
     *
     * @return Paginator|null
     */
    public function pagination(): ?Paginator
    {
        return PagePagination::make()->withDefaultPerPage(25);
    }

but when i visit /posts endpoint the response is returned without any pagination (even meta fields are not present in the response). But if I add the page size to the query /customers?page[size]=15 . It does get paginated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions