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