DomDocument class not found in laravel in php7Ankit AgrawalAugust 24, 2020laravel,PhpYou can resolve this issue by using following commands apt-get install php-xml OR sudo apt-get install php-xml After this command we need to restart apache server sudo service apache2 restart