public function isExpired(Carbon $date)
    {
        if ($this->getExpirationDate() instanceof Carbon) {
            return $this->getExpirationDate()->lte($date);
        }

        return false;
    }
public function isExpired(Carbon $date)
    {
        if ($this->getExpirationDate() instanceof Carbon) {
            return $this->getExpirationDate()->lte($date);
        }

        return false;
    }
public function isExpired ( Carbon $ date ) { if ( $ this -> getExpirationDate ( ) instanceof Carbon ) { return $ this -> getExpirationDate ( ) -> lte ( $ date ) ; } return false ; }
Checks if the rule is expired based on the given date.

@param Carbon $date
@return bool
Checks if the rule is expired based on the given date .