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

@@ -2,7 +2,7 @@
namespace Database\Factories;
use App\Models\User;
use App\Domains\Auth\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
@@ -12,6 +12,8 @@ use Illuminate\Support\Str;
*/
class UserFactory extends Factory
{
protected $model = User::class;
/**
* The current password being used by the factory.
*/
@@ -25,7 +27,7 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name(),
'nombre_apellido' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),