database/factories/UserFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            'first_name' => $this->faker->firstName,
            'last_name' => $this->faker->lastName,
            'email' => $this->faker->unique()->safeEmail,
            'email_verified_at' => now(),
            'password' => 'password', 
            'country' => $this->faker->country,
            'address' => $this->faker->address,
            'city' => $this->faker->city,
            'zip_code' => $this->faker->countryCode,
            'phone_number' => $this->faker->phoneNumber,
            'remember_token' => Str::random(10),
        ];
    }
public function definition ( ) { return [ 'first_name' => $ this -> faker -> firstName , 'last_name' => $ this -> faker -> lastName , 'email' => $ this -> faker -> unique ( ) -> safeEmail , 'email_verified_at' => now ( ) , 'password' => 'password' , 'country' => $ this -> faker -> country , 'address' => $ this -> faker -> address , 'city' => $ this -> faker -> city , 'zip_code' => $ this -> faker -> countryCode , 'phone_number' => $ this -> faker -> phoneNumber , 'remember_token' => Str :: random ( 10 ) , ] ; }
Define the model's default state.
Define the model ' s default state .
// password