title: Laravel retrieve images from database
body: <p>I need to display the stored images in my view.I've used the below code to store image in db,</p>
  
  <pre><code>     $file = Input::file('pic');
       $img = Image::make($file);
       Response::make($img-&gt;encode('jpeg'));
       $picture = new Car;
      $picture-&gt;cartype = Input::get('cartype');
      $picture-&gt;price = Input::get('price');
  
      $FileName            = Input::file('pic')-&gt;getClientOriginalName();
      $FilePath = public_path('') .'/images/'. $FileName;
      $picture-&gt;name = $FilePath;
      $picture-&gt;save();
  </code></pre>
  
  <p>In my controller( to retrieve image)</p>
  
  <pre><code>public function index()
  {
  
              $cars = DB::table('car_category')-&gt;get();
             return view('category.category',['cars'=&gt;$cars]);
  
  
  } 
  </code></pre>
  
  <p>How should I retrieve and display the images in view?</p>