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;
    }
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;
    }
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 ; }
Determine if the request has a URI that should pass through CSRF verification.

@param \Illuminate\Http\Request $request

@return bool
Determine if the request has a URI that should pass through CSRF verification .