title: How to manipulate & resize images in laravel 5.5
body: <p>I'm using <code>The Public Disk</code> which is local driver. I create a symbolic link from <code>public/storage</code> to <code>storage/app/public</code> using this given command <code>php artisan storage:link</code>. I didn't change anything as mentioned in laravel filesystem documentation. But i'm not able to view the image with <code>asset</code> helper. <code>File_path</code> is storing in database but still images are broken.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public function store(Request $request)
  {
      $this-&gt;validate($request, [
          'title' =&gt; 'required',
          'file'  =&gt; 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
      ]);
  
      $slide = new Slider();
      $slide-&gt;title       = $request-&gt;title;
      $slide-&gt;description = $request-&gt;description;
  
      //uploading image
      if ($request-&gt;hasFile('file')) {
          $file   = $request-&gt;file('file');
  
          $slide-&gt;file_name = str_random(40) . $file-&gt;getClientOriginalName();
          $slide-&gt;file_size = $file-&gt;getClientSize();
          $slide-&gt;file_mime = $file-&gt;getClientMimeType();
          $slide-&gt;file_path = $file-&gt;storeAs('public', $slide-&gt;file_name);
      }
  
      $slide-&gt;status    = $request-&gt;status;
      $slide-&gt;save();
  
      return redirect()-&gt;route('slider.index')-&gt;with('success', 'Done');
  }
  </code></pre>
  
  <p>I'm using <code>storeAs</code> method, which receives the path, the file name.</p>
  
  <p><strong>Database:</strong>
  <a href="https://i.stack.imgur.com/hGOfk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hGOfk.png" alt="enter image description here"></a></p>
  
  <p><strong>View:</strong></p>
  
  <p><code>&lt;td&gt;&lt;img src="{{ asset($slide-&gt;file_path) }}" class="content" width="25"&gt;&lt;/td&gt;</code></p>
  
  <p><code>StoreAs</code> method returns the path which is <code>public/filename.jpg</code> and images store into <code>public/storage</code> folder. How do i view the images?</p>