AbdulRahman El-zahaby
Results
13
comments of
AbdulRahman El-zahaby
Hi @clementbirkle As I understand Eloquent uses `toArray()` for relationships, not `jsonSerialize()`. So instead of overriding `jsonSerialize()`, you can override `toArray()` in your related models to ensure consistent serialization. this...