public function isExpired()
    {
        if (is_null($this->valid_until)) {
            return false;
        }

        return Carbon::now()->gt($this->valid_until) or Carbon::now()->eq($this->valid_until);
    }
public function isExpired()
    {
        if (is_null($this->valid_until)) {
            return false;
        }

        return Carbon::now()->gt($this->valid_until) or Carbon::now()->eq($this->valid_until);
    }
public function isExpired ( ) { if ( is_null ( $ this -> valid_until ) ) { return false ; } return Carbon :: now ( ) -> gt ( $ this -> valid_until ) or Carbon :: now ( ) -> eq ( $ this -> valid_until ) ; }
Check whether usage has been expired or not.

@return bool
Check whether usage has been expired or not .