8000 update api install command · laravel/framework@05bd808 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05bd808

Browse files
committed
update api install command
1 parent b0cb237 commit 05bd808

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Illuminate/Foundation/Console/ApiInstallCommand.php

+4-5
Original file line numberDiff line numberDiff 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 {
@@ -150,7 +149,7 @@ protected function installSanctum()
150149
protected function installPassport()
151150
{
152151
$this->requireComposerPackages($this->option('composer'), [
153-
'laravel/passport:^12.0',
152+
'laravel/passport:^13.0',
154153
]);
155154
}
156155
}

0 commit comments

Comments
 (0)
0