Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

francis_sebin_fernandez's avatar

Via Relation pagination count drop down/ per page option (Laravel Nova))

Hai, Thanks in advance!

I have a situation in which I need to create a per-page dropdown for the relatable resources. In Nova by default, we have a per-page dropdown created by the following static array => public static $perPageOptions = [25, 50, 100]; What I'm trying to implement is the same option for the relatable resource( created by Hasmany::make(....) ). I found a static variable in base resource => public static $perPageViaRelationship = 5;

For the current scenario, I created a custom field and extend it with Has many, and added the dropdown but was unable to add the pagination nor reassign it public static $perPageViaRelationship = 5; because of its static property

screenshot: https://support-tools.com/?939186cd5f907768#+iUSdxM9HAMaodpOexWMfP2J/nBNUu802pu6TLS604U=

0 likes
0 replies

Please or to participate in this conversation.