Fill Form Data
Greetings!
I want to perform an edit operation on my custom page I created in Filament. However, since this edit operation will be with data from a relational table, I have some difficulty in bringing the data.
If I need to talk about logic briefly:
There is "category_id" in categorySteps. Every data that has this "category_id" comes from the category_steps table. What I want to do here is to call the step_title of the data in the category_steps table associated with this category_id
https://hastebin.skyra.pw/ezupekilon.php
8 Replies
I'm curious, does this need to be a custom page? Can you instead have the Repeater directly on the CategoryResource?
Yes. This page need to be custom page. Because i'm using relationship data and i'm doing custom query. So, i'm need help this scenerio
Can you dd on the $category->categorySteps->toArray()
I suspect you need to pluck instead of toArray and pluck the step value
But i did. Could you check my code again?
I think problem is in the form method.
Solution
add $data and statePath
Thanks! It's working