I am new to Laravel, It’s cool that there is no need to write code like how I used to write using the vanilla style instead of using a framework like Laravel.
But I do have a problem with my installation. I’m not sure how to fix it tho. Been trying googling this for a while and feeling stuck.
I tried installing Breeze on my local server, and it works fine. But with my cloud server which running Plesk. it shows an error.
Here is what I already did, I’ve installed these on my composer
composer require laravel/breeze --dev
Then I try to install these on command with artisan
php artisan breeze:install
Which brings the output of these
Execution /opt/plesk/php/8.2/bin/php has failed with exit code 1, stdout: LaravelPromptsExceptionsNonInteractiveValidationException Required. at vendor/laravel/prompts/src/Concerns/Interactivity.php:32 28▕ 29▕ $this->validate($default); 30▕ 31▕ if ($this->state === 'error') { ➜ 32▕ throw new NonInteractiveValidationException($this->error); 33▕ } 34▕ 35▕ return $default; 36▕ } +13 vendor frames 14 artisan:35 IlluminateFoundationConsoleKernel::handle() , stderr:
Any thoughts?
2
Answers
I came across the same issue while I was trying to Dockerize a Laravel application
Running the command using the
--no-interaction
flag is a solution, but it will make you lose the ability to pass options. One solution would be to pass the arguments in the command line.For example, to install for the Blade stack an support the dark mode, you can write:
If you run the command
php artisan help breeze:install
, you can see many useful options, for example: