当前位置:网站首页>TP5 thinkphp5 report serialization of'closure'is not allowed
TP5 thinkphp5 report serialization of'closure'is not allowed
2022-06-26 12:23:00 【Yotoai Mengtian】
I encountered this problem when writing the query today :

reason : If you have a closure in your global domain, an error will be reported as “ Serialization of closures is not allowed ” , I found what I wrote earlier where() Method uses closures , Query results used cache() Method (cache The method is to serialize the data into a file ), Remove cache This error will not be reported after the method , Or not where The closure method will not report this error , This error will not be reported after any modification of one of them .
边栏推荐
- Quantitative elementary -- akshare obtains stock code, the simplest strategy
- TSMC Samsung will mass produce 3nm chips in 2022: will the iPhone be the first?
- UDP协议详解[通俗易懂]
- Operation analysis and investment prospect research report of China's organic chemical raw material manufacturing industry 2022-2028
- What should I do from member labels to portraits?
- 4. N queen problem
- Redis cannot connect to the server through port 6379
- 女性科学家的流失
- Research on the current situation of China's modified engineering plastics market and demand forecast analysis report 2022-2028
- Analysis report on dynamic research and investment planning suggestions of China's laser medical market in 2022
猜你喜欢

New routing file in laravel framework

Spark-day03-core programming RDD operator

SQL injection in Pikachu shooting range

dried food! Yiwen will show you SD card, TF card and SIM card!

2、 MySQL Foundation
![[solved] data duplication or data loss after laravel paginate() paging](/img/68/7bf51bbf893a91bee24f5f7d4a369f.jpg)
[solved] data duplication or data loss after laravel paginate() paging

Loggie encoding and newline character test

Scala-day03- operators and loop control

ctfshow web入门 命令执行web75-77

Prospering customs through science and technology, Ronglian and Tianjin Customs jointly build a genomic database and analysis platform
随机推荐
Is it safe to open an account in the top ten securities app rankings in China
PHP laravel+gatewayworker completes im instant messaging and file transfer functions (Chapter 2: explanation of business logic)
Spark-day01- get started quickly
2、 MySQL Foundation
Vulnerability scanning and reverse osmosis of Internet anti artifact
PHP laravel+gatewayworker completes im instant messaging and file transfer (Chapter 1: basic configuration)
Prospering customs through science and technology, Ronglian and Tianjin Customs jointly build a genomic database and analysis platform
Re recognized! Know that Chuangyu has been selected as one of the first member units of the "business security promotion plan"
基于slate构建文档编辑器
Omni channel member link - tmall member link 3: preparation of member operation content
On the use of protostaff [easy to understand]
VMware虚拟机 桥接模式 无法上网 校园网「建议收藏」
Statistical genetics: Chapter 2, the concept of statistical analysis
【Redis 系列】redis 学习十六,redis 字典(map) 及其核心编码结构
The loss of female scientists
NFS shared storage service installation
Jsonarray and jsonobject of fastjson [easy to understand]
菜鸟实战UML——活动图
Black squares in word
Research on the current situation of China's modified engineering plastics market and demand forecast analysis report 2022-2028