sarga/packages/Webkul/CartRule/src/Providers/ModuleServiceProvider.php

37 lines
971 B
PHP
Raw Normal View History

2019-12-21 05:25:32 +00:00
<?php
namespace Webkul\CartRule\Providers;
use Konekt\Concord\BaseModuleServiceProvider;
class ModuleServiceProvider extends BaseModuleServiceProvider
{
protected $models = [
\Webkul\CartRule\Models\CartRule::class,
\Webkul\CartRule\Models\CartRuleTranslation::class,
\Webkul\CartRule\Models\CartRuleCustomer::class,
\Webkul\CartRule\Models\CartRuleCoupon::class,
\Webkul\CartRule\Models\CartRuleCouponUsage::class
];
public function boot()
{
if ($this->areMigrationsEnabled()) {
$this->registerMigrations();
}
if ($this->areModelsEnabled()) {
$this->registerModels();
$this->registerEnums();
$this->registerRequestTypes();
}
if ($this->areViewsEnabled()) {
$this->registerViews();
}
if ($routes = $this->config('routes', true)) {
$this->registerRoutes($routes);
}
}
2019-12-21 05:25:32 +00:00
}