laravel - I am so new to Lavarel/PHP and I cant find the error -
i have crm system designed lavarel. trying selecting contacts, clicking on save button (i have save before exporting csv).
however after when click on download button contacts not export csv , receive error:
symfony \ component \ debug \ exception \ fatalerrorexception (e_error) call undefined method symfony\component\httpfoundation\binaryfileresponse::withcookie() open: /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 name of cookie, remember me expiration time stored $ckval=cookie::get($ckname); //get value of cookie return $response->withcookie(cookie::make($ckname,$ckval,1440)); //change expiration time } });
i cant download server.
change code from:
return $response->withcookie(cookie::make($ckname,$ckval,1440));
to:
return response::make($response)->withcookie(cookie::make($ckname,$ckval,1440));
Comments
Post a Comment