how to unset an property in object laravel code example Example: delete property from object php unset($a->new_property);