getLastGroupPrefix() public method

Get the prefix from the last group on the stack.
public getLastGroupPrefix ( ) : string
return string
 /**
  * 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}", '.');
 }
Example #2
0
 /**
  * Get the prefix from the last group on the stack.
  *
  * @return string 
  * @static 
  */
 public static function getLastGroupPrefix()
 {
     return \Illuminate\Routing\Router::getLastGroupPrefix();
 }