作者:DaybreakCP | 来源:互联网 | 2023-02-03 21:37
IhaveaCRMsystemdesignedwithLavarel.WhatIamtryingtodoisselectingsomecontacts,clicki
I have a CRM system designed with Lavarel. What I am trying to do is selecting some contacts, clicking on save button (I have to save before exporting as CSV).
我有一个用Lavarel设计的CRM系统。我要做的是选择一些联系人,点击保存按钮(我必须在导出为CSV之前保存)。
However after that when I click on download button my contacts will not export to CSV and I receive this error:
然而,在我点击下载按钮后,我的联系人将不会导出为CSV,我收到此错误:
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR) Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::withCOOKIE() Open: /home/mirjamro/public_html/mr-admin.com/app/filters.php
Symfony \ Component \ Debug \ Exception \ FatalErrorException(E_ERROR)调用未定义的方法Symfony \ Component \ HttpFoundation \ BinaryFileResponse :: withCOOKIE()打开:/home/mirjamro/public_html/mr-admin.com/app/filters.php
Auth::logout(); return Redirect::to(URL::route('AdminShowLogin')); }
if(Auth::check()){
$ckname=Auth::getRecallerName(); //Get the name of the COOKIE, where remember me expiration time is stored
$ckval=COOKIE::get($ckname); //Get the value of the COOKIE
return $response->withCOOKIE(COOKIE::make($ckname,$ckval,1440)); //change the expiration time
}
});
I cant download anything from the server.
我无法从服务器下载任何东西。
1 个解决方案