Repeater datas not showing on edit
Hey, i'm trying to setup a repeater inside a form (Patient), when i save the form, all datas are created in database even the relationship datas. But when i try to edit the patient, the reapeater datas are not showing. What am i doing wrong?
Inside Patient model :
Inside PatientData model:
Inside PatientResource:
18 Replies
@Sam i have the same problem, please tell me when you find a solution, i will do the same
@Troner for know i've looked everywhere and cant find any solution 😦 thats why im posting here
@Sam i am looking for 1 hour straight now, haven't given up yet
@Sam i fixed it for my case. i will create a minified code version to paste it here
oh nice! lets see it
i need some minutes
mmm what was the fix?
i basically have the same models definitions
and same form in my resource
i didnt know what exactly the cause was i had many diffrent errors along the way
do you have all needed columns in protected $fillable?
i have every column in fillable yeah
or maybe you have a another Select::make Entry for example that has a name of a another relation, then it doesnt work, that was also an issue for me
i dont have select in my form
can i see your code?
of my resource?
Like my code with Resource, Models and Relations
`
and you have a snippet of the Repeater code higher
Hmmm, so you dont get any erros right? Just the repeater isn't rendered on edit page?
Do you get an error if you create a new entry? for me i got an error when creating new entry but it stored in in the database anyway
I dont get any errors, on create its creating the datas in database, but when i edit i see no datas in the repeater
still havent figured it, damn it its crazy
i had this too few weeks back, let me find the answer
oh no sorry that was a different issue with repeaters
had some hope for a moment haha