/** * Invalidate a JWT, then expire and return the cookie containing it. * * @param $token (JWT) * @return \Symfony\Component\HttpFoundation\Cookie */ public function removeToken($token) { // Invalidate the JWT $this->auth->invalidate($token); // Expire the JWT Cookie $expire = \Cookie::make('jwt', null, -2628000, '/', env('SESSION_DOMAIN'), false, false); return $expire; }