Skip to content

Commit

Permalink
Added new prop
Browse files Browse the repository at this point in the history
  • Loading branch information
elyerr committed Jan 5, 2024
1 parent b74c798 commit 7d11b9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Transformers/Auth/EmployeeTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Transformers\Auth;

use App\Models\User\Employee;
use Elyerr\ApiResponse\Assets\Asset;
use League\Fractal\TransformerAbstract;

Expand Down Expand Up @@ -45,7 +45,8 @@ public function transform($user)
'direccion' => $user->address,
'nacimiento' => $user->birthday,
'telefono' => $user->phone,
'verificado' => $user->verified_at,
'verificado' => $user->verified_at,
'cliente' => Employee::withTrashed()->find($user->id)->isClient(),
'm2fa' => $user->m2fa,
'registrado' => $this->format_date($user->created_at),
'actualizado' => $this->format_date($user->updated_at),
Expand Down

0 comments on commit 7d11b9b

Please sign in to comment.