Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
This commit is contained in:
parent
95e15d2c8a
commit
cbcf62086f
573 changed files with 4387 additions and 9411 deletions
|
@ -16,17 +16,15 @@ class ApiKeyTransformer extends BaseClientTransformer
|
|||
|
||||
/**
|
||||
* Transform this model into a representation that can be consumed by a client.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(ApiKey $model)
|
||||
public function transform(ApiKey $model): array
|
||||
{
|
||||
return [
|
||||
'identifier' => $model->identifier,
|
||||
'description' => $model->memo,
|
||||
'allowed_ips' => $model->allowed_ips,
|
||||
'last_used_at' => $model->last_used_at ? $model->last_used_at->toIso8601String() : null,
|
||||
'created_at' => $model->created_at->toIso8601String(),
|
||||
'last_used_at' => $model->last_used_at ? $model->last_used_at->toAtomString() : null,
|
||||
'created_at' => $model->created_at->toAtomString(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue