Install php extensions

My dev.nix:

# To learn more about how to use Nix to configure your environment
# see: https://developers.google.com/idx/guides/customize-idx-env
{pkgs}: {
  # Which nixpkgs channel to use.
  channel = "stable-23.11"; # or "unstable"
  # Use https://search.nixos.org/packages to find packages
  packages = [
    # To learn more about setting custom php.ini configurations
    # see: https://wiki.nixos.org/wiki/PHP
    # Replace pkgs.php82 with the php version you want; ex pkgs.php83
     pkgs.php82
     (pkgs.php82.buildEnv {
        extensions = ({enabled, all}: enabled ++ (with all; [
          mbstring
          iconv
        ]));
     })
     pkgs.php82Packages.composer
     pkgs.nodejs_20
  ]
  # Sets environment variables in the workspace
  env = {};
  idx = {
    # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
    extensions = [
      # "vscodevim.vim"
    ];
    # Enable previews and customize configuration
    previews = {
      enable = true;
      previews = {
        web = {
          command = ["php" "artisan" "serve" "--port" "$PORT" "--host" "0.0.0.0"];
          manager = "web";
        };
      };
    };
  };
}

I use this this for configuration in IDX for PHP extension but i unable to see it when I run php -m
I need these extension for my Laravel project
How to fix this issue?

As far as i know. mbstring and iconv installed by default.

Try remove this config from dev.nix

     (pkgs.php82.buildEnv {
        extensions = ({enabled, all}: enabled ++ (with all; [
          mbstring
          iconv
        ]));
     })

and try to run this command on terminal to check whenever mbstring or iconv is already installed. the command will return mbstring or iconv text when extensions is installed.

php -m | grep mbstring
php -m | grep iconv

still same issue,
when i run php -m | grep iconv its did not return any thing

First image I use IDX Laravel template, for second image I use IDX blank template and add php on dev.nix:

try change channel to 24.05 or 24.11 to get updated nix package, and make sure to rebuild Environment after dev.nix change