I'm working on a CRUD part of my system. Users' can update Keywords. What I'd like to do is similar to an INSERT IGNORE
MySQL statement.
I am in an foreach loop and trying to update the keywords, However I get an
Mass Assignment Exception
Error
My current code is as follows, Am I doing anything in particular wrong?
// Save The Keywords...
$kwords = Input::get('keywords');
foreach($kwords as $key => $value)
{
// Save The Keywords...
Keywords::updateOrCreate( array('pack_id'=> $pack->pack_id, 'keyword_title' => $value));
}
Cheers