protected function getHomeDirectory($user)
    {
        $system = strtolower(php_uname());

        if (Str::contains($system, 'darwin')) {
            return "/Users/{$user}";
        } elseif (Str::contains($system, 'windows')) {
            return "C:\\Users\\{$user}";
        } elseif (Str::contains($system, 'linux')) {
            return "/home/{$user}";
        }
    }