we get the following type-hints for the User model:
@property User $manager
however, when the related user record is (soft) deleted, we no longer get access to the data through the property thanks to the SoftDeleting scope Laravel provides.
The suggestion here is to add a new config value (to preserve BC) which generated these properties as nullable to reflect the fact that they may actually contain a null value.
Given these tables
we get the following type-hints for the
User
model:however, when the related user record is (soft) deleted, we no longer get access to the data through the property thanks to the
SoftDeleting
scope Laravel provides.The suggestion here is to add a new config value (to preserve BC) which generated these properties as nullable to reflect the fact that they may actually contain a null value.