protected function getTokenString()
    {
        $result = Request::post('_token', '');
        if ('' == $result) {
            $result = Request::get('_token', '');
        }

        if ('' == $result) {
            $result = isset($_SERVER['X-CSRF-TOKEN']) ? $_SERVER['X-CSRF-TOKEN'] : '';
        }

        return $result;
    }
protected function getTokenString()
    {
        $result = Request::post('_token', '');
        if ('' == $result) {
            $result = Request::get('_token', '');
        }

        if ('' == $result) {
            $result = isset($_SERVER['X-CSRF-TOKEN']) ? $_SERVER['X-CSRF-TOKEN'] : '';
        }

        return $result;
    }
protected function getTokenString ( ) { $ result = Request :: post ( '_token' , '' ) ; if ( '' == $ result ) { $ result = Request :: get ( '_token' , '' ) ; } if ( '' == $ result ) { $ result = isset ( $ _SERVER [ 'X-CSRF-TOKEN' ] ) ? $ _SERVER [ 'X-CSRF-TOKEN' ] : '' ; } return $ result ; }
get token string
@return string
get token string