title: Error: array_flip() expects parameter 1 to be array, string given
body: <p>I am new to Laravel, getting the following error, </p>
  
  <blockquote>
    <p>array_flip() expects parameter 1 to be array, string given</p>
  </blockquote>
  
  <pre><code>in GuardsAttributes.php line 188
  at HandleExceptions-&gt;handleError(2, 'array_flip() expects parameter 1 to be array, string given', '/Users/aaronmk2/Desktop/CodingDojo/php/onetoone/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php', 188, array('attributes' =&gt; array('name' =&gt; '2250 nw 59st Seattle, WA 98107')))
  at array_flip('name') in GuardsAttributes.php line 188
  at Model-&gt;fillableFromArray(array('name' =&gt; '2250 nw 59st Seattle, WA 98107')) in Model.php line 216
  at Model-&gt;fill(array('name' =&gt; '2250 nw 59st Seattle, WA 98107')) in Model.php line 145
  at Model-&gt;__construct(array('name' =&gt; '2250 nw 59st Seattle, WA 98107')) in web.php line 24
  </code></pre>
  
  <p>Here is the code that is creating the problem</p>
  
  <pre><code>Route::get('/insert', function(){
      $user = User::findOrFail(1);
  
      $address = new Address(['name' =&gt; '2250 nw 59st Seattle, WA 98107']);
  
      $user-&gt;address()-&gt;save( $address);
  });
  </code></pre>
  
  <p>What is the issue and how can I fix it.</p>