mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 20:22:15 +01:00
Fixed Laravel passport migrations
This commit is contained in:
@@ -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