common/models/UserPlan.php
/**
     * Checks if product can be applied to current plan
     *
     * @param  Product $product
     * @return boolean
     */
Checks if product can be applied to current plan
@param  Product $product
@return boolean
Checks if product can be applied to current plan @param Product $product @return boolean
public function canApplyProduct(Product $product)
    {
        if ($this->isActive()) {
            return $this->product_type == $product->type;
        } else {
            return true;
        }
    }
public function canApplyProduct ( Product $ product ) { if ( $ this -> isActive ( ) ) { return $ this -> product_type == $ product -> type ; } else { return true ; } }
Checks if product can be applied to current plan
 @param  Product $product
 @return boolean
Checks if product can be applied to current plan @param Product $product @return boolean