Create button on relation manager just animates spinning circle one time and does not submit.

I am working on building a relation manager for ClientCarrierAvailableTrucks. When I click the Create button after filling in form data the Create button animates with a circle one time and nothing happens, no data is submitted to the databse and the modal remains on screen. I had the same behavior with my other relation manager when a hidden field was marked as required that was getting filled in on submit. I have thoroughly (I believe) removed any requirements for hidden textinputs yet this still does not submit correctly. I am a bit new to laravel/php/filament. I have attached the relation manager and associated models as well as the resource in which the relation manager is located. Any assistance is highly appreciated as I am stuck.
Solution:
Here you are having an exception or a dump/dd command
Jump to solution
18 Replies
toeknee
toekneeβ€’3mo ago
if you inspect the browser, what happens with the network request?
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
I get a 200
toeknee
toekneeβ€’3mo ago
If you review the response what is in the body? It could be ther esponse isn't being returned
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
first on update then on open?op=get&id=blahblahblah taking a peek
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
this is the response
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
to open at least - lemme grab the other oh sorry that was to update - grabbing open
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
I have no clue how to interpret this but here is the response to open?op-etcetc
Solution
toeknee
toekneeβ€’3mo ago
Here you are having an exception or a dump/dd command
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
Hmm
toeknee
toekneeβ€’3mo ago
install Sentry and then you can see the error logging
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
I think I found the file where that's occurring 🀐
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
attching here for anyone who searches later and finds themselves in a similar predicament
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
I stand corrected - I had a dd there with a comment - took the dd out but not the comment.
toeknee
toekneeβ€’3mo ago
πŸ˜‰
toeknee
toekneeβ€’3mo ago
FYI if you use telescope, it will show you dump logs etc too.
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
For clarity - this is not solved - I misspoke about finding a dd. I still cannot get this to function πŸ™ƒ My apologies for my new-ness to all of this.
toeknee
toekneeβ€’3mo ago
I would say to look into it more Check the model? and each command, a relationship manager isn't saving for a reason
DJ SneezyCheese
DJ SneezyCheeseOPβ€’3mo ago
I'll keep digging - thanks for all the insight!
Want results from more Discord servers?
Add your server