Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add enum collection cast support #5747

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Jan 14, 2025

WHY

BEFORE - What was wrong? What was happening before this PR?

reported in Laravel-Backpack/community-forum#1258

Backpack didn't support AsEnumCollection cast. https://laravel.com/docs/11.x/eloquent-mutators#casting-arrays-of-enums

AFTER - What is happening after this PR?

Backpack supports enum collection casts now 👍

HOW

How did you achieve that, in technical terms?

Added a new "match" for AsEnumCollection, and added the needed code to get the displaying options.

Is it a breaking change?

I don't think so.

@pxpm pxpm merged commit 99b7aed into main Jan 14, 2025
11 checks passed
@pxpm pxpm deleted the add-enum-collection-cast-support branch January 14, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant