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,
|
|
|
|
|
];
|
2020-11-05 08:11:02 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
}
|