How do I debug the "Create " button in Laravel Nova? I've got a resource/model with several belongsTo and a HasMany and I'm getting an error "Trying to get property 'name' of non-object" and I'm trying to debug this. When I get the form to create, it looks like all my relationships are working as I get drop downs and it's populated with the right thing. The only column in my database with "name" is my Users table. But really haven't touched it, so not sure why it would be getting thrown off.
I'm just stuck trying to debug this... i was hoping i could put a dd in a particular controller or some Laravel Nova class file to help me dig into this. Any help?
So Nova is completely built on ajax requests. They are harder to debug because you don't really see a request and response. When you have issues with Nova you can do two things:
Look in your storage/logs file and see if you can find any information there. It most likely points you to the correct file and line where the error occurs.
Use the network tab in your browser. You can see all the requests and responses there. They might help you find what's going wrong there.