mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
Fixed Laravel passport migrations
This commit is contained in:
committed by
Constantin Graf
parent
400bc434b9
commit
3d58f570bd
@@ -12,7 +12,7 @@ return new class extends Migration
|
||||
public function up(): void
|
||||
{
|
||||
// This could be optimized to run all the updates in the eachById
|
||||
DB::table('oauth_clients')->eachById(function ($client): void {
|
||||
DB::table('oauth_clients')->whereNotNull('secret')->eachById(function ($client): void {
|
||||
$secret = $client->secret;
|
||||
if (Hash::isHashed($secret) && ! Hash::needsRehash($secret)) {
|
||||
return; // Already hashed and not needing rehash
|
||||
|
||||
Reference in New Issue
Block a user