public function isLoginTokenExpired($user) {
        $startTime = strtotime($user->login_token_created_at);
        $now = strtotime(Carbon::now());
        // The time difference is in seconds, we want in minutes
        $timeDiff = ($now - $startTime)/60;
        $minutes2faFormIsLive = config('lasallecmstokenbasedlogin.token_login_minutes_token_is_live');
        if ($timeDiff > $minutes2faFormIsLive) {
            // Login token has expired
            return true;
        }
        return false;
    }
public function isLoginTokenExpired($user) {
        $startTime = strtotime($user->login_token_created_at);
        $now = strtotime(Carbon::now());
        // The time difference is in seconds, we want in minutes
        $timeDiff = ($now - $startTime)/60;
        $minutes2faFormIsLive = config('lasallecmstokenbasedlogin.token_login_minutes_token_is_live');
        if ($timeDiff > $minutes2faFormIsLive) {
            // Login token has expired
            return true;
        }
        return false;
    }
public function isLoginTokenExpired ( $ user ) { $ startTime = strtotime ( $ user -> login_token_created_at ) ; $ now = strtotime ( Carbon :: now ( ) ) ; // The time difference is in seconds, we want in minutes $ timeDiff = ( $ now - $ startTime ) / 60 ; $ minutes2faFormIsLive = config ( 'lasallecmstokenbasedlogin.token_login_minutes_token_is_live' ) ; if ( $ timeDiff > $ minutes2faFormIsLive ) { // Login token has expired return true ; } return false ; }
Has a login token expired?

@param  object  $user     User object
@return bool
Has a login token expired?