filament repeater to store values to multiple rows

i have a project where i should be able to add stocks for the products. and i want to add multiple stocks using repeater . here each product has many relation to stock. problem: repeater gives output as json to one single cell in the db but i want it to fill columns and rows how do i do
4 Replies
toeknee
toeknee5d ago
As above.. just use ->relationship('stocks')
pohoto
pohotoOP4d ago
it doesnt work work as we dont define stock inside the stock model
toeknee
toeknee4d ago
So explain exactly how you want a relationship to work for this.

Did you find this page helpful?