Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79dbecd + dfaeb78 commit 088614aCopy full SHA for 088614a
1 file changed
src/Illuminate/Database/Eloquent/Model.php
@@ -337,7 +337,7 @@ public function fill(array $attributes)
337
*/
338
protected function fillableFromArray(array $attributes)
339
{
340
- if (count($this->fillable) > 0)
+ if (count($this->fillable) > 0 and ! static::$unguarded)
341
342
return array_intersect_key($attributes, array_flip($this->fillable));
343
}
0 commit comments