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

34 lines
770 B
PHP
Raw Normal View History

2019-02-18 07:30:40 +00:00
<?php
namespace Webkul\User\Providers;
use Konekt\Concord\BaseModuleServiceProvider;
class ModuleServiceProvider extends BaseModuleServiceProvider
{
protected $models = [
\Webkul\User\Models\Admin::class,
\Webkul\User\Models\Role::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-02-18 07:30:40 +00:00
}