Skip to content

Commit

Permalink
Update Model.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored Feb 20, 2018
1 parent d84a0e2 commit d0314a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function fill(array $attributes)
if ($this->isFillable($key)) {
$this->setAttribute($key, $value);
} elseif ($totallyGuarded) {
$model = get_class($this);
$model = static::class;
throw new MassAssignmentException(
"Add [{$key}] to fillable property to allow mass assignment on {$model}."
);
Expand Down

0 comments on commit d0314a0

Please sign in to comment.