laraveleloquent-casts-accessors

star 2

Model and evolve Laravel data structures safely with integrity, performance, and rollout-aware migrations. Use for eloquent casts accessors tasks.

MakFly By MakFly schedule Updated 2/16/2026

name: laravel:eloquent-casts-accessors allowed-tools: - Read - Glob - Grep description: Model and evolve Laravel data structures safely with integrity, performance, and rollout-aware migrations. Use for eloquent casts accessors tasks.

Eloquent Casts Accessors (Laravel)

Use when

  • Designing schema/relations or data lifecycle changes.
  • Improving query performance and integrity guarantees.

Default workflow

  1. Define domain ownership/cardinality and compatibility constraints.
  2. Apply additive-safe schema/relationship changes first.
  3. Update query loading/index strategy for affected paths.
  4. Validate migration/relation behavior and rollback posture.

Guardrails

  • Preserve data integrity with constraints and transactions where needed.
  • Avoid destructive one-step production migrations.
  • Eliminate hidden N+1 in hot paths.

Progressive disclosure

  • Start with this file for execution posture and constraints.
  • Load references only for deep implementation detail or edge cases.

Output contract

  • Schema/model/relation changes.
  • Migration sequencing and rollback notes.
  • Validation commands and observed outcomes.

References

  • reference.md
  • docs/complexity-tiers.md
Install via CLI
npx skills add https://github.com/MakFly/superpowers-laravel --skill laraveleloquent-casts-accessors
Repository Details
star Stars 2
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator