feat(auth): implement authentication endpoints with registration and login functionality

This commit is contained in:
2026-06-05 19:19:03 +03:30
parent 802326336a
commit 0ddd54dc66
15 changed files with 961 additions and 3 deletions

View File

@@ -24,9 +24,12 @@ class UserFactory extends Factory
*/
public function definition(): array
{
$email = fake()->unique()->safeEmail();
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'username' => fake()->unique()->userName(),
'email' => $email,
'mobile' => fake()->unique()->numerify('09#########'),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),