I am trying to create an xml file using Orchestral/parser
I correctly installed it and called it like this in my Controller:
use Orchestra\Parser\Xml\Facade as XmlParser;
...
class Product extends Controller
{
public function createProduct()
{
$xml = XmlParser::load("test.xml");
$xmlR = $xml->parse([
'id' => ['uses' => 'xmlR.id'],
]);
}
}
But I get following error message:
ReflectionException in Container.php line 741: Class orchestra.parser.xml does not exist
Thus I do not really understand what load means(in my case load("test.xml").