Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Cybrarist
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Cybrarist
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Cybrarist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants