From f9af16ae59ebbb79dfa1ca1276f40d3bfb1d1749 Mon Sep 17 00:00:00 2001 From: Roj Vroemen Date: Mon, 29 Jan 2024 14:59:07 +0100 Subject: [PATCH] Consistently retrieve client uuids value from Passport --- src/Client.php | 2 +- src/PassportServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 57f2ae7d9..a04c91221 100644 --- a/src/Client.php +++ b/src/Client.php @@ -65,7 +65,7 @@ public static function boot() parent::boot(); static::creating(function ($model) { - if (config('passport.client_uuids')) { + if (Passport::clientUuids()) { $model->{$model->getKeyName()} = $model->{$model->getKeyName()} ?: (string) Str::orderedUuid(); } }); diff --git a/src/PassportServiceProvider.php b/src/PassportServiceProvider.php index 99e345e17..618f903cd 100644 --- a/src/PassportServiceProvider.php +++ b/src/PassportServiceProvider.php @@ -81,7 +81,7 @@ protected function registerResources() */ protected function registerMigrations() { - if ($this->app->runningInConsole() && Passport::$runsMigrations && ! config('passport.client_uuids')) { + if ($this->app->runningInConsole() && Passport::$runsMigrations && ! Passport::clientUuids()) { $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); } }