app/Http/Controllers/PaypalController.php
/**
     * Check if the renewal_date's day needs to be changed.
     *
     * @return boolean
     */
Check if the renewal_date's day needs to be changed.
@return boolean
Check if the renewal_date ' s day needs to be changed . @return boolean
private static function checlIfRenewalDateNeedsToBeChanged()
    {
        $date = new \DateTime();
        $paymentDate = $date->format('Y-m-d');
        $currentRenewalDate = Auth::guard('enterprises')->user()->renewal_date;
        if($currentRenewalDate < $paymentDate) {
            return true;
        } else {
            return false;
        }
    }
private static function checlIfRenewalDateNeedsToBeChanged ( ) { $ date = new \ DateTime ( ) ; $ paymentDate = $ date -> format ( 'Y-m-d' ) ; $ currentRenewalDate = Auth :: guard ( 'enterprises' ) -> user ( ) -> renewal_date ; if ( $ currentRenewalDate < $ paymentDate ) { return true ; } else { return false ; } }
Check if the renewal_date's day needs to be changed.
Check if the renewal_date ' s day needs to be changed .