title: How to automatically set a random string ID in Laravel when a user registers
body: <p>I would like to set a unique random string (str_random) as the user id automatically when the user is registered.</p>
  
  <p>Where do I put the code?</p>
  
  <p><strong><code>'id' =&gt; str_random(32);</code></strong></p>
  
  <p>I thought it should go in the <strong>User.php</strong> (model).</p>