Customize existing package
-
Hi, i want to edit/customize few things in a particular package.
For example let's say packages/Webkul/Product,
if i want to edit its controller, model, migrations, Providers, Repository ..etc
Can i edit them directly?
If yes, do the changes which i have made will be removed on my next update?
If not, What is the best approach for editing the existing package made by Webkul?
-
Hi there,
You can create a new package to customize the existing functionalitiesPlease follow the below guide to create
Link: https://devdocs.bagisto.com/1.x/packages/create-package.htmlTo override the Model: https://devdocs.bagisto.com/1.x/advanced/override-core-model.html
To override controller: https://forums.bagisto.com/topic/320/how-to-override-your-webkul-controllers-repository-and-classes