Skip to content

bugfix: inconsistent Guarded attribute behaviour on Pivot - #60952

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
Carnicero90:fix-guarded-attribute-on-pivot
Aug 2, 2026
Merged

bugfix: inconsistent Guarded attribute behaviour on Pivot#60952
taylorotwell merged 1 commit into
laravel:13.xfrom
Carnicero90:fix-guarded-attribute-on-pivot

Conversation

@Carnicero90

Copy link
Copy Markdown
Contributor

GuardsAttributes::initializeGuardsAttributes() compared the $guarded property against ['*'] to check whether it had been overridden from its default value. This did not work on Pivot, which already overrides $guarded with [], and attribute resolution was skipped.

@taylorotwell
taylorotwell merged commit 73e9d4e into laravel:13.x Aug 2, 2026
46 of 55 checks passed
@Carnicero90
Carnicero90 deleted the fix-guarded-attribute-on-pivot branch August 3, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants