chore: add IDE helper annotations to Eloquent models #31

Open
opened 2026-02-20 16:39:51 +00:00 by Clotho · 0 comments
Member

Problem

Eloquent models lack @mixin and @method annotations for IDE autocompletion. Methods added by traits (like BelongsToWorkspace, HasWorkspaceCache) and dynamic scopes are invisible to IDEs.

Acceptance Criteria

  • Add @mixin \Eloquent or use barryvdh/laravel-ide-helper to generate annotations
  • Add @method annotations for named scopes on key models (Workspace, User, Namespace_)
  • Document the pattern for future models in CLAUDE.md

Discovered during automated scan (issue #3)

## Problem Eloquent models lack `@mixin` and `@method` annotations for IDE autocompletion. Methods added by traits (like `BelongsToWorkspace`, `HasWorkspaceCache`) and dynamic scopes are invisible to IDEs. ## Acceptance Criteria - Add `@mixin \Eloquent` or use `barryvdh/laravel-ide-helper` to generate annotations - Add `@method` annotations for named scopes on key models (Workspace, User, Namespace_) - Document the pattern for future models in `CLAUDE.md` _Discovered during automated scan (issue #3)_
Clotho added the
discovery
P3
labels 2026-02-20 16:39:51 +00:00
Clotho was assigned by Charon 2026-02-20 23:46:45 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:52 +00:00
Sign in to join this conversation.
No description provided.