File tree 1 file changed +4
-7
lines changed
src/Illuminate/Foundation/Console
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
37
37
/**
38
38
* Execute the console command.
39
39
*
40
- * @return int
40
+ * @return void
41
41
*/
42
42
public function handle ()
43
43
{
@@ -67,12 +67,11 @@ public function handle()
67
67
}
68
68
69
69
if ($ this ->option ('passport ' )) {
70
- Process::run (array_filter ( [
70
+ Process::run ([
71
71
php_binary (),
72
72
artisan_binary (),
73
73
'passport:install ' ,
74
- $ this ->confirm ('Would you like to use UUIDs for all client IDs? ' ) ? '--uuids ' : null ,
75
- ]));
74
+ ]);
76
75
77
76
$ this ->components ->info ('API scaffolding installed. Please add the [Laravel\Passport\HasApiTokens] trait to your User model. ' );
78
77
} else {
@@ -111,8 +110,6 @@ protected function uncommentApiRoutesFile()
111
110
);
112
111
} else {
113
112
$ this ->components ->warn ('Unable to automatically add API route definition to bootstrap file. API route file should be registered manually. ' );
114
-
115
- return ;
116
113
}
117
114
}
118
115
@@ -150,7 +147,7 @@ protected function installSanctum()
150
147
protected function installPassport ()
151
148
{
152
149
$ this ->requireComposerPackages ($ this ->option ('composer ' ), [
153
- 'laravel/passport:^12 .0 ' ,
150
+ 'laravel/passport:^13 .0 ' ,
154
151
]);
155
152
}
156
153
}
You can’t perform that action at this time.
0 commit comments