Caffeinated\Modules\Repositories\LocalRepository::isEnabled PHP Method

isEnabled() public method

Check if specified module is enabled.
public isEnabled ( string $slug ) : boolean
$slug string
return boolean
    public function isEnabled($slug)
    {
        $module = $this->where('slug', $slug);
        return $module['enabled'] === true;
    }