8000 [11.x] Install Passport 13.x by hafezdivandari · Pull Request #55621 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[11.x] Install Passport 13.x #55621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
install Passport 13.x
  • Loading branch information
hafezdivandari committed Aug 2, 2024
commit 3ba0b892bf2b268e0377a302812517f1e6ea3535
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',
]);
}
}
Loading
0