laravel-credentials icon indicating copy to clipboard operation
laravel-credentials copied to clipboard

artisan credentials:edit does not work on Windows

Open miklcct opened this issue 5 years ago • 2 comments

When I try to run php artisan credentials:edit, it throws a RuntimeException with message TTY mode is not supported on Windows platform.

miklcct avatar Mar 22 '19 03:03 miklcct

Same issue.

ghost avatar Aug 24 '19 01:08 ghost

I assume it's all about src/EditCredentialsCommand.php:46, where it should check for platform and skip if Windows:

if (!(stripos(PHP_OS, 'WIN') === 0 || PHP_OS_FAMILY === "Windows")) {
        $process->setTty(true);
}

Or simply handle the exception.

Unfortunately, I don't have Windows to verify this code.

b0ric avatar May 31 '20 20:05 b0ric