rentalhost/laravel-insight

Eloquent\Model: advanced match @property annotation type

rentalhost opened this issue · 0 comments

Following #8

  • Identify relationship types:
    • HasOne;
    • HasMany;
    • HasManyThrough
    • MorphOne;
    • MorphMany;
    • MorphTo (if possible);
    • MorphToMany (same);
    • BelongsTo;
    • BelongsToMany;
  • Make sure to import Support\Collection if auto-import is enabled;
  • For instance references, consider current context type (eg. $user->age = 18, then int);
    • Should consider too on reading (eg. $int_type = $user->age, then int);