Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 laravel 的新手。我只是使用这个框架创建应用程序。我的应用程序是网络抓取,因此完成请求可能需要一分钟。问题是每个请求一个接一个地执行。我认为这是因为在请求完成之前数据库连接仍然打开。那么如何关闭数据库连接呢?
我知道这已经晚了,但你可以这样做:
DB::disconnect('DataBase');
好的。我只是调试我的代码,发现问题出在会话驱动程序中。我将会话驱动程序从本机更改为 cookie,并且请求不再等待其他请求。
At the console.log line in the render method below, it shows that this.member instance is exactly what it should be. So member object is good. I've spit out the string in tpl and it'