feat(auth): implement authentication endpoints with registration and login functionality
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user