feniixx
1822
11
Eloquent

Split an Eloquent Collection by half

Posted 4 years ago by feniixx

I would like to know how could i split by half a Collection and if it's not a pair number, then split it like:

Collection count = 15

Collection 1 = 7

Collection 2 = 8

Is that possible?

Please sign in or create an account to participate in this conversation.