casting enabled attribute

This commit is contained in:
Denis Duliçi
2020-11-13 15:37:46 +03:00
parent 2d7c18bae5
commit b8af19c910
3 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ class EnableCommand extends Command
return;
}
if ($this->model->enabled == 1) {
if ($this->model->enabled) {
$this->comment("Module [{$this->alias}] is already enabled.");
return;
}
@ -43,7 +43,7 @@ class EnableCommand extends Command
$this->changeRuntime();
// Update db
$this->model->enabled = 1;
$this->model->enabled = true;
$this->model->save();
$this->createHistory('enabled');