title: Laravel Factory - How to make meaningful dummy data with a Factory
body: <p>I want to make gender, age, and nationality of Korea and Japan, but I don't know what to do.</p>
  
  <pre><code>$factory-&gt;define(User::class, function (Faker $faker) {
  
      $gender = $faker-&gt;randomElement(['men', 'women']);
      $address = $faker-&gt;randomElement(['seoul', 'fucuoka', 'tokyo']);
      $country = $faker-&gt;randomElement(['korea', 'japan']);
      $age = rand(3, 100);
  
      return [
          'name'              =&gt; $faker-&gt;name,
          'email'             =&gt; $faker-&gt;unique()-&gt;safeEmail,
          'email_verified_at' =&gt; now(),
          'password'          =&gt; '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret,
          'country'           =&gt; $country,
          'address'           =&gt; $address,
          'age'               =&gt; $age,
          'gender'            =&gt; $gender,
          'remember_token'    =&gt; str_random(10),
      ];
  });
  </code></pre>