morawcik
Get current item position in repeater or uuid in repeater mutateRelationshipDataBeforeCreateUsing
How I can get the items positions/indexes or uuids in
mutateRelationshipDataBeforeCreateUsing()
?
I want for each item set some value available inside $state
parameter but I don't know which item is currently in mutateRelationshipDataBeforeCreateUsing
4 replies
Repeater - toggle component instead of collapse arrow
Hi,
I have repeater with items contained a few fields with Toggle (is_enabled) as "main". Is it possible to move this toggle element to repeater item header/label and collapse/expand item content depends of toggle status?
3 replies
Relation manager many to many at resource create
Hi,
I have working relation manager with attaching models/relations with editable pivot data but I'm curious if there is a way to allow attach/pre-attach or something at create page?
I have delivery methods available in my app and user can create delivery prices where they can add name, select delivery methods and set their prices. It would be awesome to get this at create page instead of require save first with just a name and only then add delivery methods and prices.
7 replies
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