Skip to content

Fix product attribute variable collision with Blade $attributes#5

Merged
theAwmin merged 1 commit into
mainfrom
fix/product-attributes-variable-collision
Jun 19, 2026
Merged

Fix product attribute variable collision with Blade $attributes#5
theAwmin merged 1 commit into
mainfrom
fix/product-attributes-variable-collision

Conversation

@abbasajorlou1371

@abbasajorlou1371 abbasajorlou1371 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Renames the product attributes view variable from $attributes to $productAttributes in create/edit product Livewire components
  • Prevents collision with Laravel's reserved ComponentAttributeBag inside <x-page>, which caused Method ComponentAttributeBag::chunk does not exist

Test plan

  • Open create product page and verify attributes section renders in a 2-column grid
  • Open edit product page and verify existing attribute values display correctly
  • Confirm no ComponentAttributeBag::chunk errors in logs

Made with Cursor

Rename the view variable to productAttributes so chunk() runs on the Eloquent collection instead of ComponentAttributeBag inside x-page.

Co-authored-by: Cursor <cursoragent@cursor.com>
@theAwmin theAwmin merged commit 89d6252 into main Jun 19, 2026
6 checks passed
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