title: How to get unique values from faker?
body: <p>I would like to ask how to generate unique value from faker?</p>
  <p>I know this is a familiar question actually, you may put some duplicate links e.g. <a href="https://stackoverflow.com/questions/43202886/laravel-seeding-multiple-unique-columns-with-faker">link 1</a>, <a href="https://stackoverflow.com/questions/57986143/how-with-faker-word-get-unique-value">link 2</a> but unfortunately, these links does not answer my problem.</p>
  <hr>
  <p>Here is my code below. I tried <code>unique(true)</code> but same result.</p>
  <pre><code>return [
      'user_id' =&gt; $this-&gt;faker-&gt;unique()-&gt;numberBetween(1, 10),
      //more code here
  ];
  </code></pre>
  <p>Below is the result that I got. As you can see there are lots of duplicate &quot;5&quot; inserted.</p>
  <p><a href="https://i.stack.imgur.com/t3W24.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t3W24.png" alt="enter image description here" /></a></p>