Adding auto detection of intermediate table names.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
@@ -376,6 +376,21 @@ function root_namespace($class, $separator = '\\')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the "class basename" of a class or object.
|
||||
*
|
||||
* The basename is considered the name of the class minus all namespaces.
|
||||
*
|
||||
* @param object|string $class
|
||||
* @return string
|
||||
*/
|
||||
function class_basename($class)
|
||||
{
|
||||
if (is_object($class)) $class = get_class($class);
|
||||
|
||||
return basename($class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the value of the given item.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user