title: Laravel Upload Image and Generate Random ID as name
body: <p>Whats the best way to generate and random ID number for every image where i want upload in Laravel 5?</p>
  
  <p>My Upload:</p>
  
  <pre><code>&lt;input type="file" id="mypicture" name="mypicture"&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public function MyPicture(Request $request){
    $user = Auth::user();
    $user-&gt;mypicture= $request-&gt;mypicture;
    $user-&gt;save();
    return redirect()-&gt;back();
  }
  </code></pre>
  
  <p>Thats the way i do it always for other things:</p>
  
  <pre><code>-&gt;uniqueid = 'VA'.str_random(28);
  </code></pre>
  
  <p>how can i add it to my Controller for image name?
  And how can i use only alphabetic character not numbers? Or i must change my DB Table.</p>
  
  <p>Thanks</p>