Use automatic virtual column on some models #1100
skyrowl
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I was primarly thinking of adding auto virtual columns on cart and order models but could extend to all models using a meta column, it's pretty much the same as using '->meta->column' but instead you can use directly '->column'.
There is an open source package from stancle that adds a trait that does it pretty well: https://github.com/archtechx/virtualcolumn
This could improve devs willing to extend those models with few efforts, it can even implement the use of those virtual columns in SQL queries.
Beta Was this translation helpful? Give feedback.
All reactions