laravl获取session里的登入账号

可以通过Auth门面访问认证用户:
要在方法上面声明 use Auth;
获取当前认证用户使用$user = Auth::user();
获取用户认证ID$id = Auth::id;