title: Laravel update is not updating table
body: <p>Ok, so my issue is, my ajax call isn't updating correctly. It's the same as many functions as I have, it's just not updating the values. Although, I can run the query on it's own in mysql and it update ok. Function is below:</p>
  
  <pre><code>/*
   * "elerts/quicksave" &gt; Update elert from all screen
   */
  public function quicksave($id)
  {
      $data = (object)Input::get();
  
      $ev = Events::find($id);
      $ev-&gt;limit          = $data-&gt;limit;
      $ev-&gt;EventEnabled   = $data-&gt;EventEnabled;
      $ev-&gt;SundayStart    = $data-&gt;SundayStart;
      $ev-&gt;MondayStart    = $data-&gt;MondayStart;
      $ev-&gt;TuesdayStart   = $data-&gt;TuesdayStart;
      $ev-&gt;WednesdayStart = $data-&gt;WednesdayStart;
      $ev-&gt;ThursdayStart  = $data-&gt;ThursdayStart;
      $ev-&gt;FridayStart    = $data-&gt;FridayStart;
      $ev-&gt;SaturdayStart  = $data-&gt;SaturdayStart;
      $ev-&gt;save();
  
      $queries = DB::getQueryLog();
      $last_query = end($queries); dd($last_query);
  
      return "Your eLert has been saved!";
  }
  </code></pre>
  
  <p>Below is an example ID getting passed and an example of the $data object that's getting passed.</p>
  
  <pre><code>$id = '107';
  object(stdClass)#137 (9) { ["limit"]=&gt; string(3) "400" ["EventEnabled"]=&gt; string(1) "1" ["SundayStart"]=&gt; string(1) "0" ["MondayStart"]=&gt; string(1) "0" ["TuesdayStart"]=&gt; string(1) "0" ["WednesdayStart"]=&gt; string(1) "0" ["ThursdayStart"]=&gt; string(1) "1" ["FridayStart"]=&gt; string(1) "1" ["SaturdayStart"]=&gt; string(1) "1"}
  </code></pre>
  
  <p>I'm confused as to why nothing is getting updated. Any help?</p>
  
  <p>EDIT: Below I've included the code for my model so people won't have to question it...</p>
  
  <pre><code>&lt;?php
  /**
   * @author jmadrigal
   * Date: 7/2/14
   * Time: 10:23 AM
   */
  class Events extends Eloquent {
  
  protected $primaryKey = 'eventid';
  public $timestamps = false;
  
  protected $fillable = array(
      'eventname', 'eventdescription', 'EventEnabled', 'visitcost',  'groupid', 'flagid', 'SundayStart', 'MondayStart', 'TuesdayStart', 'WednesdayStart', 'ThursdayStart', 'FridayStart',
      'SaturdayStart', 'limit', 'Vtmpl', 'delayV', 'Etmpl', 'delayE', 'Ttmpl', 'delayT', 'Mtemp', 'delayM', 'Login', 'freqv', 'freqt', 'freqe', 'maxe', 'maxt', 'maxv',
      'amtide', 'amtidt', 'amtidv', 'apptinterval'
  );
  
  public function aInterval() {
      return $this-&gt;hasMany('AppointmentInterval');
  }
  }
  </code></pre>