$('#status').parent().append('<a href="' + data.output.url + '" id="link">Download file</a>');
How to print "data.output.url" variable in Laravel View.
$('#status').parent().append('<a href="' + data.output.url + '" id="link">Download file</a>');
How to print "data.output.url" variable in Laravel View.
You can use the curly braces like this in the blade template:
$('#status').parent().append('<a href="' + {{ $dataOutputUrl }} + '" id="link">Download file</a>');
...Where $dataOutputUrl a php variable passed to the template. The template gets parsed and the variable will get output into the javascript.