Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 088614a

Browse files
committed
Merge branch '4.0'
2 parents 79dbecd + dfaeb78 commit 088614a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public function fill(array $attributes)
337337
*/
338338
protected function fillableFromArray(array $attributes)
339339
{
340-
if (count($this->fillable) > 0)
340+
if (count($this->fillable) > 0 and ! static::$unguarded)
341341
{
342342
return array_intersect_key($attributes, array_flip($this->fillable));
343343
}

0 commit comments

Comments
 (0)