Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KrasMan's avatar

Passport setup is breaking

Laravel 12 app built with Laravel installer. Windows 11, php v8.2.12

I'm attempting to configure my laravel 12 api application to use passport. One of the steps presented in the tutorial I'm following is to create a client, e.g.,

$ php artisan passport:client --personal

and when I run this I get this prompt:

$ php artisan passport:client --personal

  What should we name the client? [Laravel]
❯

and simply accepting the default name (I've attempted to use other names and it didn't like that) I get:



   LogicException

  Choice question must have at least 1 choice available.

  at vendor\symfony\console\Question\ChoiceQuestion.php:38
     34▕         private array $choices,
     35▕         string|bool|int|float|null $default = null,
     36▕     ) {
     37▕         if (!$choices) {
  ➜  38▕             throw new \LogicException('Choice question must have at least 1 choice available.');
     39▕         }
     40▕
     41▕         parent::__construct($question, $default);
     42▕
   ...

Is there a bug for this? Can I file one? Am I stuck trying to fix this myself?

0 likes
3 replies
KrasMan's avatar

Okay... thanks. But if so, shouldn't that be something the

$ php artisan passport:client --personal

command should be doing for me? Or at the very least providing some message that provides some hint(s) on how or what to address? From the code link you provided it really doesn't explain what my involvement should be here. Is there another artisan process I should be doing prior to this one to cover the missing bit?

martinbean's avatar

Okay... thanks. But if so, shouldn't that be something the php artisan passport:client --personal command should be doing for me?

@KrasMan No, given it’s a step mentioned in the “Installation” section of the Passport docs:

Finally, in your application's config/auth.php configuration file, you should define an api authentication guard and set the driver option to passport.

Please or to participate in this conversation.