soyhuce/next-ide-helper
Soyhuce Next IDE Helper generates IDE helper files for Next-based Laravel projects, improving autocompletion, type hints, and static analysis so editors better understand framework and application code.
soyhuce/next-ide-helper generates PHPDoc/IDE metadata for Eloquent models so editors and static analysers understand magic attributes, relations, and casts. It is a require-dev-only tool: no runtime footprint, no production dependency, no migration or schema implications — a cheap lever on onboarding time and day-to-day iteration speed for model-heavy codebases.$order->customer->... and cast-aware property types materially shortens ramp-up for engineers new to a large legacy domain model, and reduces "what does this column actually return" Slack traffic.AsCollection cast handling. Generated model metadata for attributes/relations using the AsCollection cast now reflects the correct collection type instead of a degraded/inaccurate one. No breaking changes, no configuration changes, no deprecations — a drop-in patch. The PM-relevant signal is twofold: (a) upgrade is safe and worth pinning to, and (b) custom-cast coverage is an active bug surface, so teams relying heavily on bespoke cast classes should validate generated output rather than assume correctness.Adopt when:
barryvdh/laravel-ide-helper, with modern reflection-based generation rather than legacy heuristics.Look elsewhere or defer when:
barryvdh/laravel-ide-helper (larger ecosystem, more configuration surface) or a documented internal generator.For executives (one paragraph): This is a developer-productivity tool, not a product feature. It scans our Laravel models and produces editor metadata so engineers get accurate autocompletion and type information when working with database-backed code. The business case is time-to-productivity and defect reduction on a large model layer, at effectively zero operational cost: it is installed only in development, ships nothing to production, and requires no infrastructure, migration, or security review beyond a standard dependency check. The 2.2.3 release is a small correctness patch with no breaking changes — an upgrade we can take without scheduling risk. The main caveat to note for governance is that it is a small open-source project; we mitigate by pinning versions, committing generated output, and being able to drop it without touching application code.
For engineering leads: Upgrade to 2.2.3 now — it corrects generated metadata for AsCollection casts, which previously produced inaccurate collection types in model docblocks. No API, config, or behavioural changes; no deprecation path to plan around. Install as require-dev, add the generation command to the CI pipeline as a drift check (regenerate and fail on diff), and review generated files like any other code. Do not hand-edit generated output, and re-validate after adding any custom cast classes, since cast-type resolution is where this package has historically needed fixes. Treat it as a supporting step to Larastan adoption rather than a substitute for declaring types where we reasonably can.
How can I help you explore Laravel packages today?