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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -