Answer the question
In order to leave comments, you need to log in
How to replace the implementation in a third-party component?
The project uses the gloudemans/shoppingcart package .
There was a need to expand the functionality and the only option is to expand the base "CartItem" object.
What is the smartest way to change the CartItem implementation?
Answer the question
In order to leave comments, you need to log in
Fork, do whatever you want, specify a link to your repository in the composer, it will take the package not from the author, but from you.
PROFIT
Example, here is my fork of the package for
Laravel https://github.com/Rikcon/recaptcha
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Rikcon/recaptcha"
}
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question