Closed phuclh closed 4 years ago
I need to display a star rating with an average rating, then I try to pass that average value into resolvingUsing or displayUsing function but it didn't work.
resolvingUsing
displayUsing
Rating::make('Rating')->resolveUsing(function ($name) { return $this->articles->avg('rating'); })
How can I display a calculated value as stars (that data isn't a column in the table)
@nbourguig do you have any ideas for that? Thank you.
Maybe related to #1, fixed in v1.0.2
I need to display a star rating with an average rating, then I try to pass that average value into
resolvingUsing
ordisplayUsing
function but it didn't work.How can I display a calculated value as stars (that data isn't a column in the table)