black ka1ser
black ka1ser
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
ahhh okay. anyway, thanks for your help. appreciate it
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
whats the use case for query?
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
yaya this is what i remembered before, i thought query() is something new for tables
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
yeah you're right. ill try it out
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
and
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
to only display document belongs to my department
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
// ->query(function () {
// $user = auth()->user();

// return AccessRequest::query()
// ->whereHas('document', function ($query) use ($user) {
// $query->where('department_id', $user->department_id);
// })
// ->orWhere('user_id', $user->id);
// })
// ->query(function () {
// $user = auth()->user();

// return AccessRequest::query()
// ->whereHas('document', function ($query) use ($user) {
// $query->where('department_id', $user->department_id);
// })
// ->orWhere('user_id', $user->id);
// })
i commented out this and everything works fine
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
found it
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
lemme downgrade it
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
everything is here, idek what to debug anymore hahaha
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
@@
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
i have also identified another thing: no matter which document i approve, the first row will be approved.
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
still, not sure why
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
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
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
thanks for ur inputs, will try again tmrw
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
ill try this tmrw. as for cache, yes did cleared
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
still same
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
yes yesterday. what i meant with push is just push to repo. today when i try again it just suddenly doesnt work
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
whats frustating is this works yesterday, pushed the code, and when i try again today it just suddently doesnt work @@
37 replies
FFilament
Created by black ka1ser on 11/21/2024 in #❓┊help
table actions not working
No description
37 replies