Magento 2 not loading full in XAMPP, Windows 10

349

After Successful installation Magento 2.3.x not showing in XAMPP Windows 10.

You will fix it very easy by adding a line in the following file:
…\vendor\magento\framework\View\Element\Template\File\Validator.php
At the above mentioned file find the function isPathInDirectories and add the following line :
$realPath = str_replace(‘\\’, ‘/’, $realPath);

Here is the full function :

protected function isPathInDirectories($path, $directories)
{
    if (!is_array($directories)) {
        $directories = (array)$directories;
    }
    $realPath = $this->fileDriver->getRealPath($path);
    $realPath = str_replace('\\', '/', $realPath); // New line added in function
    foreach ($directories as $directory) {
        if (0 === strpos($realPath, $directory)) {
            return true;
        }
    }
    return false;
}