Laravel-admin: php artisan admin:create-user 失败

Created on 20 Sep 2018  ·  2Comments  ·  Source: z-song/laravel-admin

  • Laravel Version: 5.7
  • PHP Version: 7.2.1
  • Laravel-admin: 1.6.1

Description:

php artisan admin:create-user 失败,到 Please enter a username to login: 时输入完成按回车
提示 LogicException : Choice question must have at least 1 choice available.

Steps To Reproduce:

php artisan admin:create-user 输入完成后按步骤进行到 Please enter a username to login:
输入完毕后出现的异常

Most helpful comment

Check table admin_roles it should not be empty

All 2 comments

Check table admin_roles it should not be empty

My admin_roles was empty and when I did a php artisan admin:install command and administrator role was added to the table. after that when I ran a php artisan admin:create-user, I managed to create the user successfully without getting the same error.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

donglianyou picture donglianyou  ·  3Comments

cdhraesaemer picture cdhraesaemer  ·  3Comments

benny-sun picture benny-sun  ·  3Comments

abufalbo picture abufalbo  ·  3Comments

piian picture piian  ·  3Comments