protected getRelativePath ( string $path ) : string | ||
$path | string | |
리턴 | string |
protected function getRelativePath($path)
{
if (0 === strpos($path, App::path())) {
$path = ltrim(str_replace('\\', '/', substr($path, strlen(App::path()))), '/');
}
return $path;
}