Update AuthMiddleware.php