-
|
Hello, I Have 2 Errors. A runtime error occurs when using the DetachAction within a Relation Manager: When starting Laravel Octane or running php artisan route:cache, the following exception is thrown: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
|
may i know what were you trying to do when you got the first error. the second is just a warning, you can ignore it. |
Beta Was this translation helpful? Give feedback.
-
|
Hello everyone, Sorry for my bad English. Thank you for the quick help! I'm encountering the following error: Error #1: The same error appears in the Portainer logs of the container. What I understand: Error #2: The delete operation fails - entry remains in database How can I fix this so that I can delete/remove entries again? |
Beta Was this translation helpful? Give feedback.
-
|
The issues are unrelated and have different causes. The first error is due to duplicate route names. Two routes are registered with the same name products.show, which Laravel cannot serialize when running Octane or route:cache. Route names must be unique, otherwise Laravel throws this exception. The second error is by design. The DetachAction fails because links are not meant to be deleted directly. Links should only be removed from the product they are attached to, and a background job later cleans up unused links. The delete button is therefore invalid and should be removed. |
Beta Was this translation helpful? Give feedback.

The issues are unrelated and have different causes.
The first error is due to duplicate route names. Two routes are registered with the same name products.show, which Laravel cannot serialize when running Octane or route:cache. Route names must be unique, otherwise Laravel throws this exception.
The second error is by design. The DetachAction fails because links are not meant to be deleted directly. Links should only be removed from the product they are attached to, and a background job later cleans up unused links. The delete button is therefore invalid and should be removed.