Skip to content

Commit

Permalink
Consistently retrieve client uuids value from Passport (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
rojtjo authored Jan 29, 2024
1 parent 3b85adc commit 8498677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/PassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit 8498677

Please sign in to comment.