Laravelβs
Collection
class is awesome. Probably you use it in all of your Laravel projects.Something that youβll need to often is casting the collection back to a regular array. Like me, you might be tempted to use
toArray()
for this. But that might be the wrong method to call.
continue reading on spatie.be
β οΈ This post links to an external website. β οΈ
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.