How to override product model?
I've created a couple of new packages to extend the product admin section, however I can not seem to override the product model.
I am just trying to add a new relationship.
$this->app->concord->registerModel( ProductContract::class, Product::class );
in my package service provider, but still not seeing the relationship.
Please go through with following link -https://devdocs.bagisto.com/override-core-model.html.
That's exactly what I mentioned I had done in my original comment, yet it still would not work.
In your package, create your model.
In this model, extend that model to whom, you want to extend.
use Webkul\Product\Models\Product as ProductBaseModel;
class Product extends ProductBaseModel
In your service provider register your model with contract of model.
This tutorial doesn't work for me as well. I did everything exactly like in tutorial