Determine if the router currently has a group stack.
public hasGroupStack ( ) : boolean | ||
return | boolean |
/** * Get the name for a given resource. * * @param string $resource * @param string $method * @param array $options * @return string */ protected function getResourceName($resource, $method, $options) { if (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'] . '.' : ''; if (!$this->router->hasGroupStack()) { return $prefix . $resource . '.' . $method; } return $this->getGroupResourceName($prefix, $resource, $method); }
/** * Determine if the router currently has a group stack. * * @return bool * @static */ public static function hasGroupStack() { return \Illuminate\Routing\Router::hasGroupStack(); }