Laravel 解决在ajax 请求下不能保存session的问题

Laravel 解决在ajax 请求下不能保存session的问题

Session::put('isLogin',true);  // 你要保存的session key
Session::put('uid',$user->id); // 你要保存的session key
Session::save();        
原文地址:https://www.cnblogs.com/zhanghanwen16/p/9607138.html