Where can I set headers in laravel

前端 未结 7 856
别那么骄傲
别那么骄傲 2020-11-29 20:08

I want to set headers as array(\'Cache-Control\'=>\'no-cache, no-store, max-age=0, must-revalidate\',\'Pragma\'=>\'no-cache\',\'Expires\'=>\'Fri, 01 Jan 1990

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 20:50

    In Laravel 5 you can change /public/index.php line 55 and set your header for entire app:

    $response->send();
    

    with:

    $response->header('Content-Type','text/html; charset=ISO-8859-1')->send();
    

    for essample.

提交回复
热议问题