title: Eloquent sync and created_at/updated_at
body: <p>I have the following code:</p>
  
  <pre><code>$entry-&gt;save();
  
  $categories = [];
  
  $categories[Input::get('main_category')] = ['main' =&gt; 1];
  
  for ($i=1; $i&lt;=4 ; ++$i) {
      $input = Input::get('category_'.$i);
      if ($input != '') {
              $categories[$input] = ['main' =&gt; 0];
      }
  }
  
  
  
  $entry-&gt;categories()-&gt;sync($categories);
  
  $inTags = explode(',', trim( Input::get('tags'), ','));
  $tags = [];
  
  foreach ($inTags as $tag) {
      $tag = trim($tag);
      if ($tag == '') {
          continue;
      }
      $fTag = Tag::firstOrCreate(array('name' =&gt; $tag));
  
      $tags[$fTag-&gt;id] = ['entry_id' =&gt; $entry-&gt;id];
  }
  $entry-&gt;tags()-&gt;sync($tags);
  </code></pre>
  
  <p>In above code I create entry (<code>$entry-&gt;save()</code> is here just enough to understand it, earlier code is not important), then save to which categories this entry belongs to (using pivot table) and do the same with tags (but for tags if tag doesn't exist I create one).</p>
  
  <p>However in both pivot tables <code>created_at</code> field is left default (<code>0000-00-00 00:00:00</code>) after inserting data (probably the same will be with <code>updated_at</code> but I haven't tested it ). </p>
  
  <p>Do I need somehow activate filing timestamps automatically or need I fill them manually on my own (but probably it will mean much more coding and no using <code>sync</code>)? </p>