title: updateOrCreate does not work in Laravel Eloquent
body: <p>I want to update or create a model. It's not working at all. </p>
  
  <p>Here is my code:</p>
  
  
  
  <pre class="lang-php prettyprint-override"><code>foreach ($ProfileRequest as $fieldname =&gt; $value){
      ProfileRequest::updateOrCreate(['sm_id' =&gt; $uid, 'field_name' =&gt; $fieldname],
          [
              'sm_id' =&gt; $uid,
              'field_name' =&gt; $fieldname,
              'value' =&gt; $value
          ]);
      }
  </code></pre>
  
  <p>This is working for insertion:</p>
  
  <pre class="lang-php prettyprint-override"><code> foreach ($ProfileRequest as $fieldname =&gt; $value) {
       $req = new ProfileRequest;
       $req-&gt;chef_id = $uid;
       $req-&gt;field_name = $fieldname;
       $req-&gt;value = $value;
       $req-&gt;save();
   }
  </code></pre>