I'm trying to save the xml file with laravel but I can not do it
$xml = new \DomDocument('1.0', 'UTF-8');
$raiz = $xml->createElement('raiz');
$raiz = $xml->appendChild($raiz);
$nodo = $xml->createElement('Grafico');
$nodo = $raiz->appendChild($nodo);
$subnodo = $xml->createElement('item','texto dentro del item');
$subnodo = $nodo->appendChild($subnodo);
$xml->formatOutput = true;
$xml->saveXML();
$xml->save('albatros_Web/public/file_XML/archivo.xml');
When I try to save I get the following error
DOMDocument :: save (albatros_Web / public / file_XML /): failed to open stream: No such file or directory