public function expire(Carbon $datetime)
    {
        TypeChecker::isDate($datetime);
        $carbon = new Carbon($datetime);
        $this->setNotificationData('expires_at', $carbon);

        return $this;
    }
public function expire(Carbon $datetime)
    {
        TypeChecker::isDate($datetime);
        $carbon = new Carbon($datetime);
        $this->setNotificationData('expires_at', $carbon);

        return $this;
    }
public function expire ( Carbon $ datetime ) { TypeChecker :: isDate ( $ datetime ) ; $ carbon = new Carbon ( $ datetime ) ; $ this -> setNotificationData ( 'expires_at' , $ carbon ) ; return $ this ; }
Set the expire date for this notification.

@param Carbon|\DateTime $datetime
@return $this
Set the expire date for this notification .