Skip to content

Commit 8498677

Browse files
authored
Consistently retrieve client uuids value from Passport (#1711)
1 parent 3b85adc commit 8498677

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function boot()
6565
parent::boot();
6666

6767
static::creating(function ($model) {
68-
if (config('passport.client_uuids')) {
68+
if (Passport::clientUuids()) {
6969
$model->{$model->getKeyName()} = $model->{$model->getKeyName()} ?: (string) Str::orderedUuid();
7070
}
7171
});

src/PassportServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function registerResources()
8181
*/
8282
protected function registerMigrations()
8383
{
84-
if ($this->app->runningInConsole() && Passport::$runsMigrations && ! config('passport.client_uuids')) {
84+
if ($this->app->runningInConsole() && Passport::$runsMigrations && ! Passport::clientUuids()) {
8585
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
8686
}
8787
}

0 commit comments

Comments
 (0)