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
|
@ -18,10 +18,8 @@ class UserTransformer extends BaseClientTransformer
|
|||
/**
|
||||
* Transforms a User model into a representation that can be shown to regular
|
||||
* users of the API.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(User $model)
|
||||
public function transform(User $model): array
|
||||
{
|
||||
return [
|
||||
'uuid' => $model->uuid,
|
||||
|
@ -29,7 +27,7 @@ class UserTransformer extends BaseClientTransformer
|
|||
'email' => $model->email,
|
||||
'image' => 'https://gravatar.com/avatar/' . md5(Str::lower($model->email)),
|
||||
'2fa_enabled' => $model->use_totp,
|
||||
'created_at' => $model->created_at->toIso8601String(),
|
||||
'created_at' => $model->created_at->toAtomString(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue