Before I use AJAX, the controller will return a "index" view with value filled,
return view('index')->with(
'languages' => $languages);
But when I am trying to use AJAX, I only got the webpage in Response. How can I render the HTML page now? I am not sure if I've put it clear. Thanks.