title: View or Download image on click of image/filename
body: <p>I followed a couple of tutorial about batch image upload using laravel but they all talk about displaying images as thumbnails which it is not what i want to achieve. I want to view stored image filenames and also a user be able to download the saved images.</p>
  
  <p>Controller</p>
  
  <pre><code>class Controller_Name extends Controller {
  //index
    public function index() {
      $variable = Model::all();
      return view('your.view', compact('variable'));
    }
  
  //uploading images to DB
  public function upload() {
      // getting all of the post data
      //$file = array('image' =&gt; Request::file('image'));
      $file = Input::file('images');
  
      //counting all selected images
      $file_count = count($file);
      $uploadcount = 0;
  
      // setting up rules
      foreach($file as $file) {
        $rules = array('form' =&gt; 'required');
  
        // doing the validation, passing post data, rules and the messages
        $validator = Validator::make(array ('form'=&gt;$file), $rules);
  
  
        if ($validator-&gt;passes())
        {
          $destinationPath = 'path/to/upload/folder';
          $filename = $file-&gt;getClientOriginalName();
          $upload_success = $file-&gt;move($destinationPath, $filename);
          $uploadcount ++;
  
          $extension = $file-&gt;getClientOriginalExtension();
          $entry = new Model;
          $entry-&gt;format = $file-&gt;getClientMimeType();
          $entry-&gt;filename = $filename;
          $entry-&gt;save();
        }
      }
  
      if($uploadcount == $file_count)
      {
        Session::flash('message', 'Uploaded successfully');
      }
      else {
        return Redirect::to('your/view')-&gt;withInput()-&gt;withErrors($validator);
      }
    }
  </code></pre>
  
  <p>I have a table that display image names stored in db and now i want a corresponding image to show or be downloaded when a user clicks on it or view button.</p>
  
  <pre><code>&lt;!--&gt;displaying images filenames in tabular view&lt;--&gt;&lt;thead&gt;
          &lt;tr&gt;
          &lt;th &gt;#&lt;/th&gt;
          &lt;th &gt;Image Name&lt;/th&gt;
          &lt;th &gt;File Format&lt;/th&gt;
          &lt;th&gt;Action&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;&lt;tbody&gt;
  
        @foreach( $variable_declared_in_download_function as $some_random_variable)                                                     &lt;tr&gt;
      &lt;td class="text-left"&gt;{{ asset('img/') }}&gt;&lt;/td&gt;                                    &lt;td class="text-left"&gt;{{ $jan2017-&gt;format}}&lt;/td&gt;                                    
      &lt;td&gt;buttons here (delete/download)&lt;/td&gt;
      &lt;/tr&gt;                                                                   @endforeach
      &lt;/tbody&gt;
      &lt;/table&gt;
          @endsection
  </code></pre>
  
  <p>Anyone out there who can help?
  Thanks in advance </p>