Use $appends to include properties in the array representation of your model
- ·
- Telegram
- ·
- Newsletter
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 ✅