table actions not working
it worked yesterday. but not today, and i cant figure out why. i tried dd() inside the action but still nothing shows up.
on my table row, there are 2 actions - approve and reject. both actions are just simply updating $record.
22 Replies
i even tried adding require confirmation to show modal, or dd/log to troubleshoot, still nothing happens
What version of filamentphp are you using?
"filament/filament": "^3.2",
Actual Version.
should be v3.2.122
whats frustating is this works yesterday, pushed the code, and when i try again today it just suddently doesnt work @@
Does it work locally?
Code looks good from here though
Maybe move your visible below action
yes yesterday. what i meant with push is just push to repo. today when i try again it just suddenly doesnt work
still same
Try going back a few versions
to ensure it's not due to an update
Also, I would ensure you have cleared cache
ill try this tmrw. as for cache, yes did cleared
thanks for ur inputs, will try again tmrw
i have noticed something. my friend also cloned the repo and tested this out. we can approve/reject the first document but not the 2nd
still, not sure why
i have also identified another thing: no matter which document i approve, the first row will be approved.
@@
Sounds like you need to debug the approval process.
everything is here, idek what to debug anymore hahaha
lemme downgrade it
found it
i commented out this and everything works fine
There you go then... so why are you using query?
to only display document belongs to my department
So why not scope the model?
and
yeah you're right. ill try it out
You don't need too, but you shouldn't use query unless absolutely needed.
You can do what you were doing with:
https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
yaya this is what i remembered before, i thought query() is something new for tables
whats the use case for query?
Query to if Im recall to overwrite the entire query with a custom query. whereas modify query, adds to it.
ahhh okay. anyway, thanks for your help. appreciate it