RelationManager table working, but actions are not
I have a resource with a RelationManager at the bottom. This is all working fine, the table shows what I'd expect, etc...
Unfortunately, clicking the edit action doesn't actually take you to the form for the related record. An XHR request is fired and is successful (No errors), but nothing happens on the page. I've been debugging and messing with this for a couple of hours and I'm just not sure what the problem could be at this point. I feel like I have exhausted everything that I can think of.
I am not new to PHP nor Laravel at all. New-ish (One year of use) to Filament. This isn't the first time I've used a RelationManager, but it is the first time I haven't been able to make it work the way I want it to. I have upgraded filament, cleared caches, deleted the resources/views/vendor directory, done everything I can think of to make it work, and still when I click Edit, nothing happens.
I'm not sure of what I'm missing.
Code to follow shortly because of Discord's stupid character limit
6 Replies
Here is my RelationManager:
My Tenant resource:
My Tenant and CentralUser models:
This might work
Sorry yes I already have that. I accidentally removed that while posting here due to character limitations. I was trying to clean it up and got rid of it.
I HAVE the action in the table. It is clickable. It's just that all that happens is that it fires off an XHR request (which returns a 200 OK response and some JSON), but doesn't actually DO anything.
Do you see any errors in the console? Any Javascript errors or so?
No. As stated in the first post - The XHR request is sent and receives a 200 OK response. No console errors. No error log errors.
Do you have an
EditPage
? Or do you want to show it in a modal?