title: inserting array value to database laravel
body: <p>I have a form attributes called, <code>name</code>, <code>description</code> and <code>features</code> where <code>features</code> is a multiple checkboxes which is like</p>
  
  <pre><code>feature 1
  feature 2
  feature 2
  feature 4
  </code></pre>
  
  <p>User can select multiple checkbox at once. I have a database table called <code>product</code> like</p>
  
  <pre><code>-----------------------------------------
      id    name    description    features  
  -----------------------------------------
  </code></pre>
  
  <p>When user selects the multiple checkbox, i need to insert all checkbox value in the features column. Right now I can <code>echo</code> the selected checkbox value like</p>
  
  <pre><code> $feat = Input::get('features');
      foreach ($feat as $key =&gt; $n){
       echo $feat[$n];
      }
  </code></pre>
  
  <p>but I need those features to insert into the database, for normal insertion, we would do like:</p>
  
  <pre><code>$product = new Product;
  $product-&gt;name = Input::get('name');
  $product-&gt;description = Input::get('description');
  $product-&gt;features = Input::get('features');
  $product-&gt;save();
  </code></pre>
  
  <p>but how should i modify the above code in order to save the array value to the database? I am trying to insert the value to same column because i won't be querying it on the basis of features.</p>