update isActive to check for module installation

This commit is contained in:
Diatrex 2020-05-08 15:06:45 +03:00
parent eb0a854d40
commit e3696940b1

View File

@ -34,6 +34,11 @@ class isActive
public function handle()
{
return app('module.collection')->get($this->project . '.' . $this->type . '.' . $this->name)->isInstalled();
$module = app('module.collection')->get($this->project . '.' . $this->type . '.' . $this->name);
if ($module) {
return $module->isInstalled();
} else {
return false;
}
}
}