How to serialize object that has closures inside properties?

后端 未结 4 1294
面向向阳花
面向向阳花 2021-01-14 05:57

if I do serialize($obj), I get:

Serialization of \'Closure\' is not allowed

Is there any way these closures can be

4条回答
提交回复
热议问题