title: firstOrCreate in model
body: <p>I am either adding to my table or editing an existing row.</p>
  
  <p>I've looked into firstOrCreate but I can't seem to get it to work, it always creates a new row.</p>
  
  <pre><code>return $this-&gt;firstOrCreate(array('id' =&gt; $input['id'], 'title' =&gt; $input['title'], 'sell' =&gt; $input['sell'], 'article' =&gt; $input['article'], 'thumb' =&gt; $input['thumb'], 'gallery' =&gt; $input['galleryData'], 'date' =&gt; $input['date'], 'published' =&gt; $input['published']));
  </code></pre>
  
  <p>Things like title change when the user edits them, is there a way to search the table based on the id, if it exists then update, if not, then create?</p>