title: Getting Error for doesn't have default value in Laravel 5.4
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value (SQL: insert into <code>day_schedules</code> (<code>updated_at</code>, <code>created_at</code>) values (2017-03-13 06:56:39, 2017-03-13 06:56:39))</p>
  </blockquote>
  
  <p>Controller:</p>
  
  <pre><code>if(isset($eventId)){
      //dd($eventId);
      for($i=0; $i&lt;$days;$i++){
          $request-&gt;request-&gt;add(['user_id'=&gt;$userid]);
          $request-&gt;request-&gt;add(['event_id'=&gt;$eventId]);
          $dayPostData = Day::create($request-&gt;except(['_token', 'submit', 'title','description','firstDate','secondDate', 'days','location','tags','event-img','event_img','sch-e','sch-s','sch-title','sch-desc']));
          $dayId=$dayPostData-&gt;id;
          //dd($dayId);
          $countSchedules=count($arr[$i]);
          //$scheduleData = DaySchedule::firstOrNew(['user_id' =&gt; Auth::user()-&gt;id]);
          for ($j=0;  $j &lt; $countSchedules; $j++){
              //dd($eventId);
              $request-&gt;request-&gt;add(['user_id'=&gt;$userid]);
              $request-&gt;request-&gt;add(['event_id'=&gt;$eventId]);
              $request-&gt;request-&gt;add(['day_id'=&gt;$dayId]);
              $scheduleData = DaySchedule::create([$request-&gt;except(['_token', 'submit', 'title','description','firstDate','secondDate' ,'days','location','tags','event-img','event_img'])]);
  
          }
  
      }
  
  }
  </code></pre>
  
  <p>Table:</p>
  
  <pre><code>CREATE TABLE `day_schedules` (
      `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
      `user_id` INT(10) UNSIGNED NOT NULL,
      `event_id` INT(10) UNSIGNED NOT NULL,
      `day_id` INT(10) UNSIGNED NOT NULL,
      `time_s` VARCHAR(50) NOT NULL,
      `time_e` VARCHAR(50) NOT NULL,
      `sch_title` LONGTEXT NOT NULL,
      `sch_desc` LONGTEXT NOT NULL,
      `created_at` TIMESTAMP NULL DEFAULT NULL,
      `updated_at` TIMESTAMP NULL DEFAULT NULL,
      PRIMARY KEY (`id`),
      INDEX `FK_dayschedules_users` (`user_id`),
      INDEX `FK_dayschedules_events` (`event_id`),
      INDEX `FK_dayschedules_days` (`day_id`),
      CONSTRAINT `FK_dayschedules_days` FOREIGN KEY (`day_id`) REFERENCES `days` (`id`) ON UPDATE CASCADE ON DELETE CASCADE,
      CONSTRAINT `FK_dayschedules_events` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON UPDATE CASCADE ON DELETE CASCADE,
      CONSTRAINT `FK_dayschedules_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE ON DELETE CASCADE
  )
  </code></pre>