/**
* Get the resource name for a grouped resource.
*
* @param string $prefix
* @param string $resource
* @param string $method
* @return string
*/
protected function getGroupResourceName($prefix, $resource, $method)
{
$group = trim(str_replace('/', '.', $this->router->getLastGroupPrefix()), '.');
if (empty($group)) {
return trim("{$prefix}{$resource}.{$method}", '.');
}
return trim("{$prefix}{$group}.{$resource}.{$method}", '.');
}