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

Append the sqid to the Model arrayable attributes. #1

Merged
merged 4 commits into from
Dec 3, 2023

Conversation

mwikala
Copy link
Contributor

@mwikala mwikala commented Dec 3, 2023

When working with an array representation of models, for example when passing data to the frontend with Inertia, the model's sqid isn't passed unless explicitly defined inside each model. This PR just adds the sqid column to the Model's $appends property by default.

@bensherred bensherred merged commit a0c92c4 into red-explosion:main Dec 3, 2023
4 checks passed
@mwikala mwikala deleted the append-sqid-attribute branch December 3, 2023 21:23
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.

2 participants