[Updated: Changed Velocity's models related code.]
This commit is contained in:
parent
5859d8dfc2
commit
ffd918af20
|
|
@ -22,6 +22,7 @@ return [
|
|||
\Webkul\CatalogRule\Providers\ModuleServiceProvider::class,
|
||||
\Webkul\CartRule\Providers\ModuleServiceProvider::class,
|
||||
\Webkul\CMS\Providers\ModuleServiceProvider::class,
|
||||
\Webkul\BookingProduct\Providers\ModuleServiceProvider::class
|
||||
\Webkul\BookingProduct\Providers\ModuleServiceProvider::class,
|
||||
\Webkul\Velocity\Providers\ModuleServiceProvider::class
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Webkul\Velocity\Contracts;
|
||||
|
||||
interface VelocityCustomerCompareProduct
|
||||
{
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ use Webkul\Velocity\Contracts\OrderBrand as OrderBrandContract;
|
|||
use Webkul\Attribute\Models\AttributeOptionProxy;
|
||||
use Webkul\Category\Models\CategoryProxy;
|
||||
|
||||
class OrderBrands extends Model implements OrderBrandContract
|
||||
class OrderBrand extends Model implements OrderBrandContract
|
||||
{
|
||||
|
||||
protected $table = 'order_brands';
|
||||
|
|
@ -3,8 +3,9 @@
|
|||
namespace Webkul\Velocity\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Velocity\Contracts\VelocityCustomerCompareProduct as VelocityCustomerCompareProductContract;
|
||||
|
||||
class VelocityCustomerCompareProduct extends Model
|
||||
class VelocityCustomerCompareProduct extends Model implements VelocityCustomerCompareProductContract
|
||||
{
|
||||
protected $guarded = [];
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace Webkul\Velocity\Models;
|
||||
|
||||
use Konekt\Concord\Proxies\ModelProxy;
|
||||
|
||||
class VelocityCustomerCompareProductProxy extends ModelProxy
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,11 @@ use Konekt\Concord\BaseModuleServiceProvider;
|
|||
class ModuleServiceProvider extends BaseModuleServiceProvider
|
||||
{
|
||||
protected $models = [
|
||||
\Webkul\Velocity\Models\Content::class,
|
||||
\Webkul\Velocity\Models\Category::class,
|
||||
\Webkul\Velocity\Models\Content::class,
|
||||
\Webkul\Velocity\Models\ContentTranslation::class,
|
||||
\Webkul\Velocity\Models\OrderBrand::class,
|
||||
\Webkul\Velocity\Models\VelocityCustomerCompareProduct::class,
|
||||
\Webkul\Velocity\Models\VelocityMetadata::class,
|
||||
];
|
||||
}
|
||||
|
|
@ -3,10 +3,6 @@
|
|||
namespace Webkul\Velocity\Providers;
|
||||
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Foundation\AliasLoader;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Webkul\Velocity\Facades\Velocity as VelocityFacade;
|
||||
|
|
@ -58,10 +54,6 @@ class VelocityServiceProvider extends ServiceProvider
|
|||
*/
|
||||
protected function registerConfig()
|
||||
{
|
||||
// $this->mergeConfigFrom(
|
||||
// dirname(__DIR__) . '/Config/system.php', 'core'
|
||||
// );
|
||||
|
||||
$this->mergeConfigFrom(
|
||||
dirname(__DIR__) . '/Config/admin-menu.php', 'menu.admin'
|
||||
);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class CategoryRepository extends Repository
|
|||
*/
|
||||
function model()
|
||||
{
|
||||
return 'Webkul\Velocity\Models\Category';
|
||||
return 'Webkul\Velocity\Contracts\Category';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class ContentRepository extends Repository
|
|||
*/
|
||||
function model()
|
||||
{
|
||||
return 'Webkul\Velocity\Models\Content';
|
||||
return 'Webkul\Velocity\Contracts\Content';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ class ContentTranslationRepository extends Repository
|
|||
*/
|
||||
function model()
|
||||
{
|
||||
return 'Webkul\Velocity\Models\ContentTranslation';
|
||||
return 'Webkul\Velocity\Contracts\ContentTranslation';
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ class OrderBrandsRepository extends Repository
|
|||
*/
|
||||
function model()
|
||||
{
|
||||
return 'Webkul\Velocity\Models\OrderBrands';
|
||||
return 'Webkul\Velocity\Contracts\OrderBrand';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -13,6 +13,6 @@ class VelocityCustomerCompareProductRepository extends Repository
|
|||
*/
|
||||
function model()
|
||||
{
|
||||
return 'Webkul\Velocity\Models\VelocityCustomerCompareProduct';
|
||||
return 'Webkul\Velocity\Contracts\VelocityCustomerCompareProduct';
|
||||
}
|
||||
}
|
||||
|
|
@ -13,6 +13,6 @@ class VelocityMetadataRepository extends Repository
|
|||
*/
|
||||
function model()
|
||||
{
|
||||
return 'Webkul\Velocity\Models\VelocityMetadata';
|
||||
return 'Webkul\Velocity\Contracts\VelocityMetadata';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue