Laravel Choice question must have at least 1 choice available

Posted by
yshuqdeMacBook-Pro:YaoliPay yshuq$ php artisan admin:create-user
 Please enter a username to login:
 > yshuq
 Please enter a password to login:
 >
 Please enter a name to display:
 > yshuq
In ChoiceQuestion.php line 36:
  Choice question must have at least 1 choice available.

解决办法

卸载laravel-admin

php artisan admin:uninstall
 Are you sure to uninstall laravel-admin? (yes/no) [no]:
 > yes
Uninstalling laravel-admin!

重写安装

composer require encore/laravel-admin:1.*
php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
php artisan admin:install

完整过程如下

composer require encore/laravel-admin:1.*
。。。。。。
。。。。。。
。。。。。。
 php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
Copied Directory [/vendor/encore/laravel-admin/config] To [/config]
Copied Directory [/vendor/encore/laravel-admin/resources/lang] To [/resources/lang]
Copied Directory [/vendor/encore/laravel-admin/database/migrations] To [/database/migrations]
Copied Directory [/vendor/encore/laravel-admin/resources/assets] To [/public/vendor/laravel-admin]
Publishing complete.
yshuqdeMacBook-Pro:YaoliPay yshuq$ php artisan admin:install
Nothing to migrate.
Admin directory was created: /app/Admin
HomeController file was created: /app/Admin/Controllers/HomeController.php
AuthController file was created: /app/Admin/Controllers/AuthController.php
ExampleController file was created: /app/Admin/Controllers/ExampleController.php
Bootstrap file was created: /app/Admin/bootstrap.php
Routes file was created: /app/Admin/routes.php