You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rentalhost
changed the title
Eloquent\Model: check if @property type matches with the reference
Eloquent\Model: match @property annotation type
Jun 1, 2017
Eg.
Requires:
@property int $some_property
Should accept:
@property int|null $some_property
Should accept:
@property int|anything $some_property
To consider:
id
(or other$primaryKey
) consider$keyType
property (or "int");_id
suffix considerint
(eg.user_id
);_at
suffix considerCarbon\Carbon
(eg.created_at
);$dates
properties asCarbon\Carbon
too;$casts
value;int
orinteger
considerint
;real
,float
ordouble
considerfloat
;string
considerstring
;bool
orboolean
considerbool
;object
considerobject
;array
orjson
considerarray
;collection
considerCollection
;date
,datetime
ortimestamp
considerCarbon
;mixed
;The text was updated successfully, but these errors were encountered: