User the export file and controller function
..
libxml_use_internal_errors(true);
..Good To Go
public function view(): View
{
$invoices = History::with('abc')->get();
libxml_use_internal_errors(true);
return view('export.soaap',compact('invoices'));
}