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