DomDocument class not found in laravel in php7

You 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