title: Serialize and Unserialize column data in Laravel 5.2
body: <p>I am newbie to Laravel and developing an eCommerce web application using <code>Laravel 5.2</code>. I've the following table structure:</p>
  
  <p><code>Products
       - ID
       - title
       - content</code></p>
  
  <p><code>Product_meta
       - meta_id
       - key
       - value
       - product_id</code></p>
  
  <p>The Table relationship:</p>
  
  <p>Product.php</p>
  
  <pre><code>class Product extends Model {
      public function meta(){
          return $this-&gt;hasMany('App\ProductMeta', 'product_id');
      }
  }
  </code></pre>
  
  <p>ProductMeta.php</p>
  
  <pre><code>class ProductMeta extends Model {
      public function product() {
          return $this-&gt;belongsTo('App\Product');
      }
  }
  </code></pre>
  
  <p>And the input fields for the product meta are like:</p>
  
  <p><code>name="product_meta[price]"
  name="product_meta[guideline]
  ...</code></p>
  
  <p>I want to store product additional information i.e: price, guidelines, etc in <code>product_meta</code> table. Is it good practice to store product_meta array in serialize form in my situation? And How do I handle this? or can you please suggest any other way to store/<strong>update</strong> product meta? </p>
  
  <p>Thanks</p>