Not found #4466
Replies: 2 comments 3 replies
-
Unable to reproduce the issue, please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example) URL: This taken directly from |
Beta Was this translation helpful? Give feedback.
-
Even creating a payment via the "Proposta" Resource, Laravel Nova goes through the fields method of the "Proposta" Resource if ($request->editMode == 'create') {
return [
BelongsTo::make('Entidade')->searchable()->withoutTrashed(),
BelongsTo::make('Ação', 'acao', Acao::class)->withoutTrashed(),
];
} The idea here was to show only two fields in create. I know that it has "fieldsForCreate" but I was having problems with it and other packages, so, I did this "if", but as the I changed it to now it's working |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following relationship between two models: Project hasOne payment. belongsTo Project Payment
When I'm in the Project to create a new Payment I always get the Not Found message.
Laravel Nova is generating the following URL
http://localhost/nova/resources/payments/new?viaResource=proposals&viaResourceId=35&viaRelationship=payment&relationshipType=hasOne
When I adjust to URL
http://localhost/nova/resources/pagamentos/new?viaResource=propostas&viaResourceId=35
Payment creation works
Beta Was this translation helpful? Give feedback.
All reactions