You will see this error if you try to run some artisan commands programmatically from within an HTTP request: This is because Laravel will try to prompt for confirmation if the application is running in the production environment. While doing so, the Symfony/Console component will use the built-in STDIN PHP constant to capture the input stream.
To avoid this error, you need to use the --force option to disable the interactivity: Hey! If you want to receive updates on what I'm up to, I host a newsletter on my website themsaid.com and would love to have you.
In this publication, I share everything I know about Laravel's core, packages, and tools.