Split an Eloquent Collection by half
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.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!