Skip to content

Commit

Permalink
install Passport 13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Aug 2, 2024
1 parent 8fd4e65 commit 3ba0b89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Illuminate/Foundation/Console/ApiInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ public function handle()
}

if ($this->option('passport')) {
Process::run(array_filter([
Process::run([
(new PhpExecutableFinder())->find(false) ?: 'php',
defined('ARTISAN_BINARY') ? ARTISAN_BINARY : 'artisan',
'passport:install',
$this->confirm('Would you like to use UUIDs for all client IDs?') ? '--uuids' : null,
]));
]);

$this->components->info('API scaffolding installed. Please add the [Laravel\Passport\HasApiTokens] trait to your User model.');
} else {
Expand Down Expand Up @@ -147,7 +146,7 @@ protected function installSanctum()
protected function installPassport()
{
$this->requireComposerPackages($this->option('composer'), [
'laravel/passport:^12.0',
'laravel/passport:^13.0',
]);
}
}

0 comments on commit 3ba0b89

Please sign in to comment.