src/Helpers/FileSystem.php
public static function splitNameFromPath($path)
    {
        $name = static::nameFromPath($path);
        $path = static::trimFileName($path);

        return [$path, $name];
    }
public static function splitNameFromPath($path)
    {
        $name = static::nameFromPath($path);
        $path = static::trimFileName($path);

        return [$path, $name];
    }
public static function splitNameFromPath ( $ path ) { $ name = static :: nameFromPath ( $ path ) ; $ path = static :: trimFileName ( $ path ) ; return [ $ path , $ name ] ; }
Get the path separate from name

@param string $path

@return array
Get the path separate from name