Fully disable cookies in Laravel 4 API

前端 未结 7 516
余生分开走
余生分开走 2020-12-14 04:58

I am using Laravel to build a RESTful API. I use Basic HTTP Auth (Authenticate header), with this filter:



        
7条回答
  •  误落风尘
    2020-12-14 05:16

    To disable sessions for all routes in a Laravel 4 controller, set the session driver option in the class construct:

提交回复
热议问题