Eloquent\Model: advanced match @property annotation type
rentalhost opened this issue · 0 comments
rentalhost commented
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
, thenint
);- Should consider too on reading (eg.
$int_type = $user->age
, thenint
);
- Should consider too on reading (eg.