简体   繁体   中英

How to choose multiple service when installing laravel/sail on existing an Laravel project?

How can I choose multiple services when running php artisan sail:install ?

When I run it, I get this prompt asking me to choose services but I can't select more than one option. When I chose redis , it scaffolded the app with redis only.

$ php artisan sail:install
Which services would you like to install? [mysql]:
  [0] mysql
  [1] pgsql
  [2] mariadb
  [3] redis
  [4] memcached
  [5] meilisearch
  [6] minio
  [7] mailhog
  [8] selenium
> 3

Sail scaffolding installed successfully.

I tried using [0,3,5,7,8] but it never worked. How can I choose multiple options? I am using Ubuntu 20.04.

You don't need to specify the service options as an array, just a comma separated string.

So in your example, you only need to do:

0,3,5,7

Besides @Peppermintology 's answer, you can also type the names of the services you want to install as a comma-separated string like this:

mysql,redis,meilisearch,mailhog,selenium

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM