Oliver Nybroe @nybroe.dev · Jan 7

It's sometimes important to remember the differences between `all` and `toArray` in collections in Laravel, as in most cases it is actually `all` method you want to call. Converting a model with all loaded relations to an array can be expensive.

0 likes 0 replies

?