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
\Illuminate\Support\Optional should implement __isset, there are some cases that maight need this.
For example, I have an Eloquent HasMany relation, say contacts on model User:
$user->contacts maight be an empty Collection, so I have to check it by optional helper.
Since the Optional didn't implement __isset, $hasPhoneNumber will always be false.
Steps To Reproduce:
See code above.
The text was updated successfully, but these errors were encountered:
Description:
\Illuminate\Support\Optional
should implement __isset, there are some cases that maight need this.For example, I have an Eloquent HasMany relation, say
contacts
on modelUser
:$user->contacts
maight be an empty Collection, so I have to check it by optional helper.Since the Optional didn't implement
__isset
,$hasPhoneNumber
will always befalse
.Steps To Reproduce:
See code above.
The text was updated successfully, but these errors were encountered: