Cannot implement our own path generator when using custom media model. #3762
Unanswered
sawoodscraperrs
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.
-
I have created a custom media model that extends the Spatie media model. I now want to implement my own path generator by creating a class that implements the
PathGenerator
interface.However, I’ve encountered an issue: the contract blueprint for the
PathGenerator
interface expects the original Spatie media model, whereas I am using my custom media model. This mismatch is causing difficulties in implementing the custom path generator.Could you provide guidance or suggest a solution for handling this scenario?
Beta Was this translation helpful? Give feedback.
All reactions