title: undefined variable error in blade view
body: <p>I am currently working with Laravel 5.2, trying to display images on click
  which I have currently stored in the <strong>Storage</strong> folder. I am trying to display these images in my blade view but every time it loads the page, it gets to an undefined variable exception.</p>
  
  <p><strong>Controller</strong>:</p>
  
  <pre><code>public function createemoji($action,$statusId)
  {  
      $path = storage_path('app/public/images/'.$action.'.gif');
  
      /*$request=new storage();
      $request-&gt;comment=$path;
      $request-&gt;user_id=Auth::user()-&gt;id;
      $request-&gt;post_id=$statusId;
      $request-&gt;save();*/
      return redirect()-&gt;returnemoji()-&gt;with('file'-&gt;$path);
  
  }
  
  public function returnemoji($file)
  {           
      return Image::get('$file')-&gt;response();
  }
  </code></pre>
  
  <p>In my default view I tried using <strong>count()</strong> but everytime it loads the page, it gives me <strong>Undefined variable</strong>. How should I display it? </p>