protected function getResourceRouteName(string $resource, string $method, array $options): string
    {
        $name = $resource;

        // If the names array has been provided to us we will check for an entry in the
        // array first. We will also check for the specific method within this array
        // so the names may be specified on a more "granular" level using methods.
        if (isset($options['names'])) {
            if (\is_string($options['names'])) {
                $name = $options['names'];
            } elseif (isset($options['names'][$method])) {
                return $options['names'][$method];
            }
        }

        // If a global prefix has been assigned to all names for this resource, we will
        // grab that so we can prepend it onto the name when we create this name for
        // the resource action. Otherwise we'll just use an empty string for here.
        $prefix = isset($options['as']) ? $options['as'] . '.' : '';

        return \trim(\sprintf('%s%s.%s', $prefix, $name, $method), '.');
    }
protected function getResourceRouteName(string $resource, string $method, array $options): string
    {
        $name = $resource;

        // If the names array has been provided to us we will check for an entry in the
        // array first. We will also check for the specific method within this array
        // so the names may be specified on a more "granular" level using methods.
        if (isset($options['names'])) {
            if (\is_string($options['names'])) {
                $name = $options['names'];
            } elseif (isset($options['names'][$method])) {
                return $options['names'][$method];
            }
        }

        // If a global prefix has been assigned to all names for this resource, we will
        // grab that so we can prepend it onto the name when we create this name for
        // the resource action. Otherwise we'll just use an empty string for here.
        $prefix = isset($options['as']) ? $options['as'] . '.' : '';

        return \trim(\sprintf('%s%s.%s', $prefix, $name, $method), '.');
    }
protected function getResourceRouteName ( string $ resource , string $ method , array $ options ) : string { $ name = $ resource ; // If the names array has been provided to us we will check for an entry in the // array first. We will also check for the specific method within this array // so the names may be specified on a more "granular" level using methods. if ( isset ( $ options [ 'names' ] ) ) { if ( \ is_string ( $ options [ 'names' ] ) ) { $ name = $ options [ 'names' ] ; } elseif ( isset ( $ options [ 'names' ] [ $ method ] ) ) { return $ options [ 'names' ] [ $ method ] ; } } // If a global prefix has been assigned to all names for this resource, we will // grab that so we can prepend it onto the name when we create this name for // the resource action. Otherwise we'll just use an empty string for here. $ prefix = isset ( $ options [ 'as' ] ) ? $ options [ 'as' ] . '.' : '' ; return \ trim ( \ sprintf ( '%s%s.%s' , $ prefix , $ name , $ method ) , '.' ) ; }
Get the name for a given resource.

@param string $resource
@param string $method
@param array  $options

@return string
Get the name for a given resource .