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

Automatic eloquent casts #11

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

samlev
Copy link

@samlev samlev commented Nov 26, 2024

This adds in support for automatically merging the snowflake cast for models that use the HasSnowflakes trait. This should mean that you can just use HasSnowflakes on your model, and not have to explicitly set the cast. It should also respect the global snowflake/sonyflake setting.

It also adds in an additional test for casting Sonyflakes, and expands the existing tests to check that everything works with the new casts() method from Laravel 11+

Finally, a little housekeeping - the composer scripts was set up to use pest, which isn't installed on the project.

@samlev samlev marked this pull request as draft December 3, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant