Laravel DOMDocument() class not found

If you are using DOMDocument class in Laravel, you might be facing this problem that Laravel DOMDocument() class not found. It’s because, in laravel 5, you must prefix the class name with the global namespace prefix ‘\’. A sample code is given below. View the…