更新时间:2023-02-22 14:15:13
查看Laravel源代码( https:// github。 com / laravel / framework / blob / ef0864242e6e6f19a78f941b0710c844016ddf6e / src / Illuminate / Cookie / CookieJar.php ),似乎没有一次删除所有的cookie的功能,所以你只有选择的确会是循环所有Cookie,并逐个删除它们。
Looking at the Laravel source code (https://github.com/laravel/framework/blob/ef0864242e6e6f19a78f941b0710c844016ddf6e/src/Illuminate/Cookie/CookieJar.php), there doesn't seem to be a function to delete all the cookies at once, so you only option would indeed be to loop over all the cookies and delete them one by one.