src/Carbon/Translator.php
public function removeDirectory(string $directory)
    {
        $search = rtrim(strtr($directory, '\\', '/'), '/');

        return $this->setDirectories(array_filter($this->getDirectories(), function ($item) use ($search) {
            return rtrim(strtr($item, '\\', '/'), '/') !== $search;
        }));
    }
public function removeDirectory(string $directory)
    {
        $search = rtrim(strtr($directory, '\\', '/'), '/');

        return $this->setDirectories(array_filter($this->getDirectories(), function ($item) use ($search) {
            return rtrim(strtr($item, '\\', '/'), '/') !== $search;
        }));
    }
public function removeDirectory ( string $ directory ) { $ search = rtrim ( strtr ( $ directory , '\\' , '/' ) , '/' ) ; return $ this -> setDirectories ( array_filter ( $ this -> getDirectories ( ) , function ( $ item ) use ( $ search ) { return rtrim ( strtr ( $ item , '\\' , '/' ) , '/' ) !== $ search ; } ) ) ; }
Remove a directory from the list translation files are searched in.

@param string $directory directory path

@return $this
Remove a directory from the list translation files are searched in .