title: Laravel : An "updated_at" and "created_at" field found when adding data on my table
body: <p>When i update my table with data there is a two extra fields found which i am not added on my table.Let me show my code with detail.</p>
  
  <p>Migration table inquiry_plan detail:</p>
  
  <pre><code>public function up()
  {
     Schema::create('inquiry_plan', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;unsignedInteger('inquiry_id');
          $table-&gt;string('title_vacation');
          $table-&gt;string('email');
          $table-&gt;string('phone_no', 20)-&gt;nullable();
          $table-&gt;dateTime('start_date')-&gt;nullable();
          $table-&gt;dateTime('end_date')-&gt;nullable();
          $table-&gt;foreign('inquiry_id')-&gt;references('id')-&gt;on('inquiry_master');
      });
  }
  </code></pre>
  
  <p>On my planController added a function for add activity:</p>
  
  <p>Here is my controller function</p>
  
  <pre><code> public function addactivity(Request $request) {
      try {
          $validator = Validator::make($request-&gt;all(), Inquiryplan::planRules(), Inquiryplan::PlanMessages());
          $plandetails = Inquiryplan::SaveOrUpdate($request);
          if($plandetails !== false) {
              return redirect()-&gt;route('plan')-&gt;with('success', trans('Plan details added successfully.!!'));
          } else {
              return back()-&gt;with('error', "Unable to save plan details.!!")-&gt;withInput();
          }
      } catch (\Exception $ex) {
          dd($ex);
          return back()-&gt;with('error', "Unable to save plan details.!!")-&gt;withInput()-&gt;withErrors($validator);
      }
  }
  </code></pre>
  
  <p>And finally saveOrupdate function in my model.</p>
  
  <p>Here is my model function </p>
  
  <pre><code>public static function SaveOrUpdate(Request $request) {
      try {
          $id = $request-&gt;get('id', false);
          $plandetails = false;
          DB::transaction(function () use ($request, &amp;$plandetails, $id) {
              $plandetails = $id ? Inquiryplan::findOrFail($id) : new Inquiryplan();
              $plandetails-&gt;fill($request-&gt;all());
              try {
                  $plandetails-&gt;save();
              } catch (\Exception $ex) {
                  throw $ex;
              }
              dd($ex);
          });
          return $plandetails;
      } catch (\Exception $ex) {
          throw $ex;
      }
  }
  </code></pre>
  
  <p>When i submit my form it return error</p>
  
  <blockquote>
    <p>"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'updated_at' in 'field list' (SQL: insert into <code>inquiry_plan</code> (<code>inquiry_id</code>, <code>title_vacation</code>, <code>phone_no</code>, <code>start_date</code>, <code>end_date</code>, <code>updated_at</code>, <code>created_at</code>) values (0, test title, 9974031835, 2018-02-06, 2018-02-14, 2018-02-06 10:44:45, 2018-02-06 10:44:45))</p>
  </blockquote>
  
  <p>what is the problem ?</p>