Installation app category issue solved.

This commit is contained in:
Cüneyt Şentürk 2019-11-19 17:06:50 +03:00
parent 023ef6f214
commit 2c96ef05f1
5 changed files with 5 additions and 5 deletions

View File

@ -191,7 +191,7 @@ class Updater
ModelHistory::create([ ModelHistory::create([
'company_id' => session('company_id'), 'company_id' => session('company_id'),
'module_id' => $model->id, 'module_id' => $model->id,
'category' => $module->get('category'), 'category' => $module->get('category', 'payment-method'),
'version' => $version, 'version' => $version,
'description' => trans('modules.history.updated', ['module' => $module->get('alias')]), 'description' => trans('modules.history.updated', ['module' => $module->get('alias')]),
]); ]);

View File

@ -52,7 +52,7 @@ class DeleteCommand extends Command
$data = [ $data = [
'company_id' => $company_id, 'company_id' => $company_id,
'module_id' => $model->id, 'module_id' => $model->id,
'category' => $module->get('category'), 'category' => $module->get('category', 'payment-method'),
'version' => $module->get('version'), 'version' => $module->get('version'),
'description' => trans('modules.deleted', ['module' => $module->get('alias')]), 'description' => trans('modules.deleted', ['module' => $module->get('alias')]),
]; ];

View File

@ -51,7 +51,7 @@ class DisableCommand extends Command
$data = [ $data = [
'company_id' => $company_id, 'company_id' => $company_id,
'module_id' => $model->id, 'module_id' => $model->id,
'category' => $module->get('category'), 'category' => $module->get('category', 'payment-method'),
'version' => $module->get('version'), 'version' => $module->get('version'),
'description' => trans('modules.disabled', ['module' => $module->get('alias')]), 'description' => trans('modules.disabled', ['module' => $module->get('alias')]),
]; ];

View File

@ -51,7 +51,7 @@ class EnableCommand extends Command
$data = [ $data = [
'company_id' => $company_id, 'company_id' => $company_id,
'module_id' => $model->id, 'module_id' => $model->id,
'category' => $module->get('category'), 'category' => $module->get('category', 'payment-method'),
'version' => $module->get('version'), 'version' => $module->get('version'),
'description' => trans('modules.enabled', ['module' => $module->get('alias')]), 'description' => trans('modules.enabled', ['module' => $module->get('alias')]),
]; ];

View File

@ -53,7 +53,7 @@ class InstallCommand extends Command
$data = [ $data = [
'company_id' => $company_id, 'company_id' => $company_id,
'module_id' => $model->id, 'module_id' => $model->id,
'category' => $module->get('category'), 'category' => $module->get('category', 'payment-method'),
'version' => $module->get('version'), 'version' => $module->get('version'),
'description' => trans('modules.installed', ['module' => $module->get('alias')]), 'description' => trans('modules.installed', ['module' => $module->get('alias')]),
]; ];