storing custom metadata with route #45373
Unanswered
douglassdavis
asked this question in
Ideas
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.
-
I'm relatively new with Laravel. Maybe this is already a feature, but I've seen others ask with no answer, so I would like to suggest it.
I would like the ability to store custom data (in the form of key/value pairs) along with a route.
For example, say I want to add my own metadata data to this route
I thought I could add a route macro called addMetadata to save metadata to be retrieved later.
However, I don't think this is possible (if I'm wrong, let me know).
Is there a standard way to store custom metadata? Or, any practical way? I thought maybe I could store them using default(), but that could change the default parameters for a controller function.
Could this be something that could be added?
Beta Was this translation helpful? Give feedback.
All reactions