original_string: protected function inExceptArray($request)
      {
          foreach (config('admin.operation_log.except') as $except) {
              if ('/' !== $except) {
                  $except = trim($except, '/');
              }
  
              $methods = [];
  
              if (Str::contains($except, ':')) {
                  list($methods, $except) = explode(':', $except);
                  $methods = explode(',', $methods);
              }
  
              $methods = array_map('strtoupper', $methods);
  
              if ($request->is($except) &&
                  (empty($methods) || in_array($request->method(), $methods, true))) {
                  return true;
              }
          }
  
          return false;
      }
code: protected function inExceptArray($request)
      {
          foreach (config('admin.operation_log.except') as $except) {
              if ('/' !== $except) {
                  $except = trim($except, '/');
              }
  
              $methods = [];
  
              if (Str::contains($except, ':')) {
                  list($methods, $except) = explode(':', $except);
                  $methods = explode(',', $methods);
              }
  
              $methods = array_map('strtoupper', $methods);
  
              if ($request->is($except) &&
                  (empty($methods) || in_array($request->method(), $methods, true))) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: protected function inExceptArray ( $ request ) { foreach ( config ( 'admin.operation_log.except' ) as $ except ) { if ( '/' !== $ except ) { $ except = trim ( $ except , '/' ) ; } $ methods = [ ] ; if ( Str :: contains ( $ except , ':' ) ) { list ( $ methods , $ except ) = explode ( ':' , $ except ) ; $ methods = explode ( ',' , $ methods ) ; } $ methods = array_map ( 'strtoupper' , $ methods ) ; if ( $ request -> is ( $ except ) && ( empty ( $ methods ) || in_array ( $ request -> method ( ) , $ methods , true ) ) ) { return true ; } } return false ; }
docstring: Determine if the request has a URI that should pass through CSRF verification.
  
  @param \Illuminate\Http\Request $request
  
  @return bool
docstring_tokens: Determine if the request has a URI that should pass through CSRF verification .