Use $appends to include properties in the array representation of your model

Use $appends to include properties in the array representation of your model

Had to revisit a #Laravel project from 3 years ago, and found out I did append a mutator in the toArray method 😂, there is no need for that, we can use the "$appends" and it does the same job ✅

We're writing a book, you can get it for free here.