skip to Main Content

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


    • Use the –no-interaction Flag
    • When running the php artisan breeze:install command, add the –no-interaction flag to skip interactive prompts. This can help in non-interactive environments
    php artisan breeze:install --no-interaction
    
    Login or Signup to reply.
  1. 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:

    php artisan breeze:install --dark blade
    

    If you run the command php artisan help breeze:install, you can see many useful options, for example:

    Description:
      Install the Breeze controllers and resources
    
    Usage:
      breeze:install [options] [--] <stack>
    
    Arguments:
      stack                      The development stack that should be installed (blade,livewire,livewire-functional,react,vue,api)
    
    Options:
          --dark                 Indicate that dark mode support should be installed
          --pest                 Indicate that Pest should be installed
          --ssr                  Indicates if Inertia SSR support should be installed
          --typescript           Indicates if TypeScript is preferred for the Inertia stack
          --composer[=COMPOSER]  Absolute path to the Composer binary which should be used to install packages [default: "global"]
      -h, --help                 Display help for the given command. When no command is given display help for the list command
      -q, --quiet                Do not output any message
      -V, --version              Display this application version
          --ansi|--no-ansi       Force (or disable --no-ansi) ANSI output
      -n, --no-interaction       Do not ask any interactive question
          --env[=ENV]            The environment the command should run under
      -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search