<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
'username' => fake()->unique()->userName(),
'firstname' => fake()->name(),
'image' => fake()->imageUrl(),
'lastname' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'status' => fake()->numberBetween(0, 2),
'refferal_user_id' => fake()->numberBetween(1, 100),
'email_verified' =>fake()->numberBetween(0, 1),
'sms_verified' =>fake()->numberBetween(0, 1),
'kyc_verified' =>fake()->numberBetween(0, 1),
'two_factor_verified' =>fake()->numberBetween(0, 1),
'email_verified_at' => now(),
'password' => Hash::make("rokondev"), // password
'remember_token' => Str::random(10),
];
}
/**
* Indicate that the model's email address should be unverified.
*
* @return static
*/
public function unverified()
{
return $this->state(fn (array $attributes) => [
'email_verified_at' => null,
]);
}
}
Contact Section
We’d love to hear from you! Whether you have questions, feedback, or need support, our team is here to help. Reach out to us via email, phone, or visit our office. We’re committed to providing you with exceptional service and ensuring your experience with NFC Pay is seamless and satisfying. Let’s connect!