/home/kueuepay/public_html/database/factories/UserFactory.php
<?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,
        ]);
    }
}
Web Journal
top

Discover the Latest in Digital Payments and NFC Technology

Dive into our blog to explore the cutting-edge trends in digital payments and NFC technology. Stay updated on the innovations that are revolutionizing transactions, boosting security, and making payments quicker and more convenient. Learn how these advancements are shaping the future of financial interactions and driving the global transition towards a cashless world.

The Rise of Contactless Payments:...

In recent years, contactless payments have surged in popularity, driven...

Enhancing Payment Security: The Role...

As digital transactions proliferate, ensuring robust payment security is more critical than ever. Two foundational...

The Future of Digital Wallets:...

Digital wallets have fundamentally transformed how we manage money, offering a streamlined, secure, and highly...