revoke team member invite
CI/CD / test_and_check_app (push) Failing after 56s
CI/CD / Publish immutable image (push) Skipped

This commit is contained in:
2026-09-19 05:43:00 +02:00
parent 5113ea56fc
commit 3db250ca51
9 changed files with 174 additions and 65 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Resources;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* @mixin User
*/
class UserResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'name' => $this->name,
'email' => $this->email,
'has_multi_factor' => $this->hasVerifiedEmail() || $this->hasEnabledTwoFactorAuthentication(),
];
}
}