public function isUserTwoFactorAuthEnabled($userId) {
        $result = DB::table('users')
            ->where('id', '=', $userId)
            ->value('two_factor_auth_enabled')
        ;

        if ($result) {
            return true;
        }
        return false;
    }
public function isUserTwoFactorAuthEnabled($userId) {
        $result = DB::table('users')
            ->where('id', '=', $userId)
            ->value('two_factor_auth_enabled')
        ;

        if ($result) {
            return true;
        }
        return false;
    }
public function isUserTwoFactorAuthEnabled ( $ userId ) { $ result = DB :: table ( 'users' ) -> where ( 'id' , '=' , $ userId ) -> value ( 'two_factor_auth_enabled' ) ; if ( $ result ) { return true ; } return false ; }
Is user enabled for Two Factor Authorization

@param  int    $userId          User ID
@return bool
Is user enabled for Two Factor Authorization