Introducing Laravel Error Share, simply share and debug local errors with your team!
PHP
Do not call toArray() to get all items from a Laravel Collection
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. Read more…