php - Limiting the number of objects an object can own in Laravel 5 -


i'm trying figure out if there way limit number of objects object can own in laravel 5.

for instance have organization has many users, plan on limits number of users can have 5, there built in function allow organizations has many users , limit number of users 5?

i not sure possible looking @ relationship types logically, think not possible.

for example, have one one, one many, , many many relationship types. if possible, wouldn't have magic method hasmaximum5 or effect ?

ofcourse, possible in many ways using application logic not eloquent orm afraid. not sure if possible in other orms doctrine or activerecord.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -