File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/Illuminate/Foundation/Console Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class ApiInstallCommand extends Command
3737 /**
3838 * Execute the console command.
3939 *
40- * @return int
40+ * @return void
4141 */
4242 public function handle ()
4343 {
@@ -67,12 +67,11 @@ public function handle()
6767 }
6868
6969 if ($ this ->option ('passport ' )) {
70- Process::run (array_filter ( [
70+ Process::run ([
7171 php_binary (),
7272 artisan_binary (),
7373 'passport:install ' ,
74- $ this ->confirm ('Would you like to use UUIDs for all client IDs? ' ) ? '--uuids ' : null ,
75- ]));
74+ ]);
7675
7776 $ this ->components ->info ('API scaffolding installed. Please add the [Laravel\Passport\HasApiTokens] trait to your User model. ' );
7877 } else {
@@ -111,8 +110,6 @@ protected function uncommentApiRoutesFile()
111110 );
112111 } else {
113112 $ this ->components ->warn ('Unable to automatically add API route definition to bootstrap file. API route file should be registered manually. ' );
114-
115- return ;
116113 }
117114 }
118115
@@ -150,7 +147,7 @@ protected function installSanctum()
150147 protected function installPassport ()
151148 {
152149 $ this ->requireComposerPackages ($ this ->option ('composer ' ), [
153- 'laravel/passport:^12 .0 ' ,
150+ 'laravel/passport:^13 .0 ' ,
154151 ]);
155152 }
156153}
You can’t perform that action at this time.
0 commit comments