Update our override of Laravel's attributesToArray()#223
Conversation
WalkthroughRefactor: attribute transformation logic in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
$jsonablearray since Laravel doesn't seem to handle this.addCastAttributesToArray()also adds casting types not supported before:Note: in order for created_at/updated_at columns to be used in $casts, the model's
$timestampsproperty needs to be false.Summary by CodeRabbit
Refactor
Tests
Note: No user-facing changes or public API updates in this release.
✏️ Tip: You can customize this high-level summary in your review settings.