Laravel Eloquent ignore attribute if not in table during insert
<p>I have a model Foo that corresponds to a table with the following columns.</p>

<p>id<br>
description<br>
user_id</p>

<p>I'm setting the attributes of the Foo model individually (no mass assignment)</p>

<pre><code>$foo = new Foo;

$foo-&gt;id = 1;
$foo-&gt;description = "hello kitty";
$foo-&gt;user_id = 55;

//...
</code></pre>

<p>$foo is sent to another class for additional processing, but because that class needs a bit more information, I would like to simply add it to the $foo model.</p>

<pre><code>//...
$foo-&gt;bar = $additional_information;

Event::fire(DoStuffWithFoo($foo));

$foo-&gt;save();  //error
</code></pre>

<p>the problem is when I <code>$foo-&gt;save()</code>, it complains that <code>bar</code> isn't a column.</p>

<p>I know I can <code>unset($foo-&gt;bar);</code> before saving, but...</p>

<p>Is it possible to tell Eloquent to simply ignore any non relevant attributes?</p>