app/Http/Controllers/importXMLController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $xml = $this->request->only('xml');
        $xml = response()->json($xml);
        dd($xml);
        dd($xml);    
    }
public function store ( Request $ request ) { $ xml = $ this -> request -> only ( 'xml' ) ; $ xml = response ( ) -> json ( $ xml ) ; dd ( $ xml ) ; dd ( $ xml ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// $xml1 = array(['curso' => $xml]); // $xml  = $this->request->all('xml'); // $xmlfile = file_get_contents($xml); // $ob= simplexml_load_string($xmlfile); // $teste = json_encode($ob); // $configData = json_decode($teste, true); // dd($configData);  // $json = $this->repository->namespacedXMLToArray($xml1);