How to summarize the attributes from model? #13080
Unanswered
NaungYeHtet
asked this question in
Help
Replies: 2 comments 6 replies
-
Summarize will use the db, not attributes. If you need to calculate the price, you can use a virtual column as a table column, like this: //migration..
$table->float('price')->virtualAs('column_a * column_b'); |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Panel builder
Package Version
v3
How can we help you?
Got sql error unknown column price
Beta Was this translation helpful? Give feedback.
All reactions