title: How to check file is uploaded or not in laravel
body: <p>I am uploading an image file to the input file <strong>ImageUpload</strong>.I need to check if file has been uploaded then create a unique filename and save it on the server.</p>
  
  <pre><code>$file = $request-&gt;file('ImageUpload');
  $filename=uniqid($user-&gt;id . '_'    ).".".$file-&gt;getClientOriginalExtension();
  Storage::disk('public')-&gt;put($filename,File::get($file));
  </code></pre>