We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 624d873 commit 31782acCopy full SHA for 31782ac
src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php
@@ -167,7 +167,8 @@ public function isGuarded($key)
167
$key = Str::before($key, '->');
168
}
169
170
- return $this->getGuarded() == ['*'] || ! empty(preg_grep('/^'.preg_quote($key).'$/i', $this->getGuarded()));
+ return $this->getGuarded() == ['*'] ||
171
+ ! empty(preg_grep('/^'.preg_quote($key).'$/i', $this->getGuarded()));
172
173
174
/**
0 commit comments