title: How to save uploaded image to Storage in laravel?
body: <p>I am using Image intervention to save an image to the storage folder. I have the code below and it seems to just save a file name with a blank image. I think I need a way for the file contents to be written to the folder but struggling for the snippet. </p>
  
  <pre><code>if ($request-&gt;hasFile('photo')) {
              $image      = $request-&gt;file('photo');
              $fileName   = time() . '.' . $image-&gt;getClientOriginalExtension();
  
              $img = Image::make($image-&gt;getRealPath());
              $img-&gt;resize(120, 120, function ($constraint) {
                  $constraint-&gt;aspectRatio();                 
              });
  
              //dd();
              Storage::disk('local')-&gt;put('images/1/smalls'.'/'.$fileName, $img, 'public');
  </code></pre>