update api key model
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user