random string generator in laravel : <p>I have 1 file: testController.php</p>

<pre><code>use Illuminate\Support\Str;

$Quantity = 5;
$Promo_code = Str::random($length = 10);
   for($i = 0; $i &lt; $Quantity; $i++){
      \Debugbar::info($Promo_code);
   }
</code></pre>

<p>result:</p>

<pre><code>a366PPbdB6

a366PPbdB6

a366PPbdB6

a366PPbdB6

a366PPbdB6

a366PPbdB6
</code></pre>

<p>I want the result to be random code
For example:</p>

<pre><code>rxXELTrs9z

BOja7WVDHl

6NWL91Den1

GxAdiVHuIV

Lyaf9GPwn9
</code></pre>

<p>thanks you for help me!</p>
