<span id="CxQeV"><ins id="CxQeV"><meter id="CxQeV"><textarea id="CxQeV"><select id="CxQeV"><th id="CxQeV"></th></select></textarea><fieldset id="CxQeV"></fieldset></meter><thead id="CxQeV"></thead></ins><address id="CxQeV"><object id="CxQeV"></object></address></span>

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

          浏览:23 发布日期:2020/02/20 分类: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()));
          最佳答案
          评论( 相关
          后面还有条评论,点击查看>>