File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ protected function createPersonalAccessClient(ClientRepository $clients): ?Clien
7373 {
7474 $ provider = $ this ->option ('provider ' ) ?: $ this ->components ->choice (
7575 'Which user provider should this client use to retrieve users? ' ,
76- collect (config ('auth.guards ' ))->where ('driver ' , 'passport ' )->pluck ('provider ' )->all (),
76+ collect (config ('auth.guards ' ))->where ('driver ' , 'passport ' )->pluck ('provider ' )->all ()
77+ ?: collect (config ('auth.providers ' ))->keys ()->all (),
7778 config ('auth.guards.api.provider ' )
7879 );
7980
@@ -89,7 +90,8 @@ protected function createPasswordClient(ClientRepository $clients): Client
8990 {
9091 $ provider = $ this ->option ('provider ' ) ?: $ this ->components ->choice (
9192 'Which user provider should this client use to retrieve users? ' ,
92- collect (config ('auth.guards ' ))->where ('driver ' , 'passport ' )->pluck ('provider ' )->all (),
93+ collect (config ('auth.guards ' ))->where ('driver ' , 'passport ' )->pluck ('provider ' )->all ()
94+ ?: collect (config ('auth.providers ' ))->keys ()->all (),
9395 config ('auth.guards.api.provider ' )
9496 );
9597
You can’t perform that action at this time.
0 commit comments