Display active plugin count on updates page

This commit is contained in:
flynsarmy 2015-02-04 13:40:01 +10:00
parent 99fc380aa3
commit 3dcd718df8

View File

@ -77,6 +77,16 @@ class PluginVersion extends Model
}
/**
* Only include enabled plugins
* @param $query
* @return mixed
*/
public function scopeEnabled($query)
{
return $query->where('is_disabled', '!=', 1);
}
/**
* Returns the current version for a plugin
* @param string $pluginCode Plugin code. Eg: Acme.Blog