Declaring route attributes for a method provided by a trait? #153
Unanswered
craigrileyuk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Say we have a trait or we extended a class that provides a
destroycontroller method. The method might use class properties to execute, but the function itself is defined elsewhere.Because of the differences in execution, we need separate routes for each use of this
destroymethod.Is it possible to use route attributes to declare a route in this case, where many classes share the same function?
Would overriding the method and calling
parent::destroy()be the way?Beta Was this translation helpful? Give feedback.
All reactions