From e1f380905c81181caebefeb26176ba2c8e40354d Mon Sep 17 00:00:00 2001 From: baijunyao Date: Thu, 11 Jun 2020 15:52:23 +0800 Subject: [PATCH] Improve `passport:install` command --- src/Console/InstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 843dc5d4e..f5ed11023 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -56,7 +56,7 @@ protected function configureUuids() config(['passport.client_uuids' => true]); Passport::setClientUuids(true); - $this->replaceInFile(config_path('passport.php'), 'false', 'true'); + $this->replaceInFile(config_path('passport.php'), '\'client_uuids\' => false', '\'client_uuids\' => true'); $this->replaceInFile(database_path('migrations/2016_06_01_000001_create_oauth_auth_codes_table.php'), '$table->unsignedBigInteger(\'client_id\');', '$table->uuid(\'client_id\');'); $this->replaceInFile(database_path('migrations/2016_06_01_000002_create_oauth_access_tokens_table.php'), '$table->unsignedBigInteger(\'client_id\');', '$table->uuid(\'client_id\');'); $this->replaceInFile(database_path('migrations/2016_06_01_000004_create_oauth_clients_table.php'), '$table->bigIncrements(\'id\');', '$table->uuid(\'id\')->primary();');