src/Models/Company.php
/**
     * Checks if this company has a specific module enabled
     * @param  string  $name Name of module
     * @return boolean       
     */
Checks if this company has a specific module enabled
@param  string  $name Name of module
@return boolean
Checks if this company has a specific module enabled @param string $name Name of module @return boolean
public function hasModule($name = null)
    {
        if (is_string($name)) {
            foreach ($this->modules as $r) {
                if ($r->name === $name) {
                    return true;
                }
            }
        }
        return false;
    }
public function hasModule ( $ name = null ) { if ( is_string ( $ name ) ) { foreach ( $ this -> modules as $ r ) { if ( $ r -> name === $ name ) { return true ; } } } return false ; }
Checks if this company has a specific module enabled
 @param  string  $name Name of module
 @return boolean
Checks if this company has a specific module enabled @param string $name Name of module @return boolean