src/Utils/Filesystem.php
public function pathInBase($filename)
    {
        $filename  = str_replace('\\', '/', $filename);
        $path_root = str_replace('\\', '/', base_path() . '/');

        return str_replace($path_root, '', $filename);
    }
public function pathInBase($filename)
    {
        $filename  = str_replace('\\', '/', $filename);
        $path_root = str_replace('\\', '/', base_path() . '/');

        return str_replace($path_root, '', $filename);
    }
public function pathInBase ( $ filename ) { $ filename = str_replace ( '\\' , '/' , $ filename ) ; $ path_root = str_replace ( '\\' , '/' , base_path ( ) . '/' ) ; return str_replace ( $ path_root , '' , $ filename ) ; }
Remove path base of filename
@param $filename
@return string
Remove path base of filename