feat: implement user registration functionality with validation and response handling

This commit is contained in:
2026-07-02 12:23:50 -03:00
parent 18eedd3209
commit a95cfc780b
16 changed files with 202 additions and 14 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Domains\Auth\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* @mixin \App\Domains\Auth\Models\User
*/
class UserResource extends JsonResource
{
/**
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'nombre_apellido' => $this->nombre_apellido,
'email' => $this->email,
];
}
}