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
As above.. just use ->relationship('stocks')
it doesnt work work as we dont define stock inside the stock model
So explain exactly how you want a relationship to work for this.