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.
1 parent 56e6134 commit 260dc0aCopy full SHA for 260dc0a
Eloquent/Concerns/GuardsAttributes.php
@@ -152,6 +152,7 @@ public function isFillable($key)
152
}
153
154
return empty($this->getFillable()) &&
155
+ strpos($key, '.') === false &&
156
! Str::startsWith($key, '_');
157
158
Eloquent/Model.php
@@ -376,15 +376,6 @@ public function qualifyColumn($column)
376
*/
377
protected function removeTableFromKey($key)
378
{
379
- if (strpos($key, '.') !== false) {
380
- if (! empty($this->getGuarded()) &&
381
- $this->getGuarded() !== ['*']) {
382
- throw new LogicException('Mass assignment of Eloquent attributes including table names is unsafe when guarding attributes.');
383
- }
384
-
385
- return last(explode('.', $key));
386
387
388
return $key;
389
390
0 commit comments