title: Laravel - Storing multiple images in the database in Single Row
body: <p>How can I store multiple images in my database in laravel ? I have this code but I cant pass any data it only passes one data. </p>
  
  <blockquote>
    <p>I want to achieve this database format in my images Row</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/wyljX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wyljX.png" alt="enter image description here"></a></p>
  
  <p><strong><em>Controller</em></strong> </p>
  
  <pre><code> public function store(Request $request)
  {
  
  
     //Handle File Upload
     if($request-&gt;hasFile('city')){
      // Get FileName
      $filenameWithExt = implode(' , ',$request-&gt;file('city')-&gt;getClientOriginalName());
      //Get just filename
      $filename = pathinfo( $filenameWithExt, PATHINFO_FILENAME);
      //Get just extension
      $extension =  implode(' , ',$request-&gt;file('city')-&gt;getClientOriginalExtension());
      //Filename to Store
      $fileNameToStore = $filename.'_'.time().'.'.$extension;
      //Upload Image
      $path =  implode(' , ',$request-&gt;file('city')-&gt;storeAs('public/city_image',$fileNameToStore));
  
  }else{
      $fileNameToStore='noimage.jpg';
  }
  
     $citi = new City;
     $citi-&gt;city =$fileNameToStore;
     $citi-&gt;save();
  
     return redirect('/lugar')-&gt;with('success', 'Data Inserted');
  }
  </code></pre>
  
  <p><strong><em>View</em></strong></p>
  
  <pre><code>                 &lt;td&gt; {{Form::file('city[]')}} &lt;/td&gt;
  </code></pre>