update api key model

This commit is contained in:
2026-03-09 13:36:08 +08:00
parent eb37fff56b
commit 5e8297d822
+2
View File
@@ -70,6 +70,8 @@ class ApiKey extends Model
'key_hash' => hash('sha256', $plain_key),
'key_prefix' => substr($plain_key, 0, 8),
'expires_at' => $expires_at,
'enabled' => true,
'created_at' => \Carbon\Carbon::now(),
]);
return ['api_key' => $model, 'plain_key' => $plain_key];