• <tbody id="araUU"><select id="araUU"><small id="araUU"></small></select></tbody>

      在调试模式开启时路由使用response()会报错

      浏览:18 发布日期:2019/11/19 分类:ThinkPHP5专区 关键字: bug
      在APP_DEBUG = true情况下,路由使用response()会报错:

      Uncaught ErrorException: var_export does not handle circular references

      Route::get('/h5/static/<name>', response()
                                  ->data(file_get_contents('https://starideas.net/cloud/xyadmin/js/chunk-vendors.3efb1daa.js'))
                                  ->code(200)
                                  ->expires($ts)
                                  ->cacheControl("max-age=$seconds_to_cache")
                                  ->contentType('text/' . request()->ext()));
      最佳答案
      评论( 相关
      后面还有条评论,点击查看>>