Closed victorighalo closed 4 years ago
Product
must obviously not implement the Taxon interface.
How do you set up the custom models?
Product
must obviously not implement the Taxon interface. How do you set up the custom models?
$this->app->concord->registerModel(TaxonContract::class, \App\Product::class);
$this->app->concord->registerModel(TaxonContract::class, \App\Taxon::class);
Do I have to explain? :)
$this->app->concord->registerModel(ProductContract::class, \App\Product::class);
$this->app->concord->registerModel(TaxonContract::class, \App\Taxon::class);
I get this exception when i create a custom model for both Taxon and Product:
Class App\Product must extend or implement Vanilo\Category\Contracts\Taxon.
When i implement Taxon, then i'm forced to also add the method definitions of the Taxon interface.