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

sikic's avatar
Level 1

Extend Spark Plan to Set Max on Relationship Model

Is there an easy way to set a limit to a number of instances of the particular model, like there is maxTeamMembers() function.

I would want to do max('App\Website', 2). What would be best practice for this=

0 likes
0 replies

Please or to participate in this conversation.