title: Laravel intervention/image doesn't resize image
body: <p>I am trying to use laravel intervention plugin. I installed it without problem but can't use it. 
  I am trying to make a test function which returns resized image, but without success;
  I think the problem may be in image path, please help me fix my code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function test($img)
  {
     /* $img = Image::make('public/image1.jpg');
      $img-&gt;resize(300, 200);
      return $img; */
  
     $image = Image::make('http://localhost/cms/digital-cms/public/image1.jpg')-&gt;resize(200, 200, function ($c) {
          $c-&gt;aspectRatio();
          $c-&gt;upsize();
      });
      return $image;
  
      //$h=200; $w=200;
      //return Image::make(public_path('public/image1.jpg')-&gt;resize($h, $w)-&gt;response('jpg'));
  }</code></pre>
  </div>
  </div>
  </p>