title: 'Illegal Offset Type" suddenly occurring in registration array Laravel
body: <p>In my registration store function which is called after the user has typed in valid information I have a default array that is converted to JSON and stored in my DB with the user. All of a sudden I am getting the error:</p>
  
  <pre><code>Illegal Offset Type (line 50)
  </code></pre>
  
  <p>which the last object of my first array (it is multi dimensional). I deleted the object to see if the error was specific to that object but the error still persists. I don't understand where this error is coming from because I did't change anything in or around the registration system for a while. </p>
  
  <p>This is the store() function being called after the registration form is submitted:</p>
  
  <pre><code>public function store()
  {
      $input = Input::only('username', 'email', 'password', 'password_confirmation');
  
      $this-&gt;registrationForm-&gt;validate($input);
  
      $user = User::create($input);
  
      $arr = array(
          [1] =&gt; array(
              'name' =&gt; 'Apple',
              'time' =&gt; '2:00 am',
              'date' =&gt; '10.26.96',
              'symptom' =&gt; false,),
          [2] =&gt;array(
              'name' =&gt; 'Banana',
              'time' =&gt; '3:56 pm',
              'date' =&gt; '10.26.96',
              'symptom' =&gt; false,),
          [3] =&gt;array(
              'name' =&gt; Input::get('symptom'),
              'time' =&gt; '4:45 pm',
              'date' =&gt; '10.26.96',
              'symptom' =&gt; true,
          ));
  
      $user-&gt;json = json_encode($arr);
  
      $user-&gt;save();
  
      Auth::login($user);
  
      return Redirect::home();
  }
  </code></pre>
  
  <p>The error occurs in "line 50" which is in the last object of the first array <code>'symptom' =&gt; false,),</code></p>
  
  <p>I have absolultley no idea how this happened. I even used time machine to load my project from a few days ago when I am certain it was fully functional and the error is still there. I will appreciate any help, please let me know if more information is needed. </p>