protected function inAllowedMethods($method)
    {
        $allowedMethods = collect(config('admin.operation_log.allowed_methods'))->filter();

        if ($allowedMethods->isEmpty()) {
            return true;
        }

        return $allowedMethods->map(function ($method) {
            return strtoupper($method);
        })->contains($method);
    }
protected function inAllowedMethods($method)
    {
        $allowedMethods = collect(config('admin.operation_log.allowed_methods'))->filter();

        if ($allowedMethods->isEmpty()) {
            return true;
        }

        return $allowedMethods->map(function ($method) {
            return strtoupper($method);
        })->contains($method);
    }
protected function inAllowedMethods ( $ method ) { $ allowedMethods = collect ( config ( 'admin.operation_log.allowed_methods' ) ) -> filter ( ) ; if ( $ allowedMethods -> isEmpty ( ) ) { return true ; } return $ allowedMethods -> map ( function ( $ method ) { return strtoupper ( $ method ) ; } ) -> contains ( $ method ) ; }
Whether requests using this method are allowed to be logged.

@param string $method

@return bool
Whether requests using this method are allowed to be logged .