src/Passport.php
public static function refreshTokensExpireIn(DateTimeInterface $date = null)
    {
        if (is_null($date)) {
            return static::$refreshTokensExpireAt
                            ? Carbon::now()->diff(static::$refreshTokensExpireAt)
                            : new DateInterval('P1Y');
        }

        static::$refreshTokensExpireAt = $date;

        return new static;
    }
public static function refreshTokensExpireIn(DateTimeInterface $date = null)
    {
        if (is_null($date)) {
            return static::$refreshTokensExpireAt
                            ? Carbon::now()->diff(static::$refreshTokensExpireAt)
                            : new DateInterval('P1Y');
        }

        static::$refreshTokensExpireAt = $date;

        return new static;
    }
public static function refreshTokensExpireIn ( DateTimeInterface $ date = null ) { if ( is_null ( $ date ) ) { return static :: $ refreshTokensExpireAt ? Carbon :: now ( ) -> diff ( static :: $ refreshTokensExpireAt ) : new DateInterval ( 'P1Y' ) ; } static :: $ refreshTokensExpireAt = $ date ; return new static ; }
Get or set when refresh tokens expire.

@param  \DateTimeInterface|null  $date
@return \DateInterval|static
Get or set when refresh tokens expire .