morawcik
Column avg() not working? I'm sure i'm missing something
I don't know if I'm missing something but...
I have model Review with relations:
then Product model:
In Review resource I have this:
In avg column I have nothing but when I'm using query builder
withAvg
i'm getting in review ($record) object. What I'm missing with this column avg() ?4 replies
2 levels of tenancy (nested tenancy)
Hi,
It is possible to have 2 levels of tenancy?
I mean one level it would be for user companies (each user can have multiple companies) and then each company could have multiple stores with different workers, products, etc etc.
If it's not possible then any hint how It could be done?
Thanks.
4 replies
Pivot data in model/resource table
Hi.
I have Product model with relation:
I tried to show
purchasable
in resource table but without success. I added column:
but it is always empty. When i change it to customerGroups.name
the I get those names.
I even tried to dump $state
inside of color()
method. I started with just customerGroups
and I got this:
and then if i tried customerGroups.pivot
or customerGroups.pivot.purchasable
I got nothing - like dd()
even not fired4 replies